Filter löschen
Filter löschen

how to delete a row from the matrix??

1 Ansicht (letzte 30 Tage)
sani ars
sani ars am 9 Jan. 2013
Suppose if I have a matrix as:
san = [ 1 2 3; 4 5 6; 7 8 9; 10 11 12; 13 14 15]
if I want to delete second row and all of its column then ow can I do this??
  3 Kommentare
nayana
nayana am 9 Jan. 2013
delete(x,:)=[]; where x is the row u want 2 delete
Image Analyst
Image Analyst am 9 Jan. 2013
Bearbeitet: Image Analyst am 9 Jan. 2013
Two virtually identical questions in the same day ( http://www.mathworks.com/matlabcentral/answers/58362-how-to-delete-data-from-2d-matrix) - is this homework, the same homework as Wei's? If so, it should have been tagged as homework instead of "matlab code".

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Srinivas
Srinivas am 9 Jan. 2013
san(2,:) = []

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by