how to delete a row from the matrix??

조회 수: 2 (최근 30일)
sani ars
sani ars 2013년 1월 9일
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
nayana
nayana 2013년 1월 9일
delete(x,:)=[]; where x is the row u want 2 delete
Image Analyst
Image Analyst 2013년 1월 9일
편집: Image Analyst 2013년 1월 9일
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".

댓글을 달려면 로그인하십시오.

채택된 답변

Srinivas
Srinivas 2013년 1월 9일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by