Just use X(rows:cols) = [] e.g X = 1 2 3 4 5 6 7 8 9 X(2,:) = [] -- removes the 2nd row.. X(:,2) = [] -- removes the 2nd column... Kind Regards, Prakash -- Original Message -- >Dear friends, > >How can I delete a single row/column or an array of rows/columns from a >matrix? > >Is there any specific command in matlab for doing this? > >Thanks. > >ali > > >_____________________________________ >Note: If you do a simple "reply" with your email client, only the author >of this message will receive your answer. You need to do a "reply all" >if you want your answer to be distributed to the entire group. > >_____________________________________ >About this discussion group: > >To Join: > >To Post: > >To Leave: > >Archives: http://www.yahoogroups.com/group/matlab > >More DSP-Related Groups: http://www.dsprelated.com/groups.php3 > >">http://docs.yahoo.com/info/terms/ > > |