Jerry's Questions

Ever run into a problem or a question that you were sure someone else HAD to have dealt with the same thing, yet you could not find any answer on the internet? Or you did find answers, but it took you hours or even days? This blog is simply a running account of the questions and answers that I have struggled with. May it save you gray hairs and sleepless nights.

Wednesday, June 25, 2008

Q. How do you delete a whole column of a matrix in Matlab?

A. Use empty brackets!  i.e

A =[1 2 3 ; 4 5 6 ; 7 8 9]

A(2, :) = []

A=[1 2 3 ; 7 8 9]
Posted by Jerry Ross at 12:13 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2013 (4)
    • ►  November (1)
    • ►  August (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2012 (2)
    • ►  September (2)
  • ►  2011 (4)
    • ►  July (1)
    • ►  April (2)
    • ►  March (1)
  • ►  2010 (5)
    • ►  December (1)
    • ►  September (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2009 (4)
    • ►  September (1)
    • ►  June (1)
    • ►  May (2)
  • ▼  2008 (5)
    • ►  October (1)
    • ▼  June (1)
      • Q. How do you delete a whole column of a matrix in...
    • ►  May (1)
    • ►  January (2)
  • ►  2007 (10)
    • ►  December (3)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  January (4)

About Me

Jerry Ross
View my complete profile
Awesome Inc. theme. Powered by Blogger.