how to delete a row from the matrix??

1 visualizzazione (ultimi 30 giorni)
sani ars
sani ars il 9 Gen 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 Commenti
nayana
nayana il 9 Gen 2013
delete(x,:)=[]; where x is the row u want 2 delete
Image Analyst
Image Analyst il 9 Gen 2013
Modificato: Image Analyst il 9 Gen 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".

Accedi per commentare.

Risposta accettata

Srinivas
Srinivas il 9 Gen 2013
san(2,:) = []

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by