REMOVE

6 views (last 30 days)
huda nawaf
huda nawaf on 15 Aug 2011
HI, are there remove fun. to remove row from array ?
thanks
  1 Comment
Jan
Jan on 15 Aug 2011
Such basic functions are explained exhaustively in the Getting Started chapters of the documentation. It is very recommended to read the instructions for such a powerful tool as MATLAB.

Sign in to comment.

Answers (2)

Jan
Jan on 15 Aug 2011
M = rand(3, 3);
M(2, :) = []; % Remove 2nd row

Daniel Shub
Daniel Shub on 15 Aug 2011
irow = 3;
x = magic(5)
x(irow, :) = []

Categories

Find more on Software Development Tools in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!