필터 지우기
필터 지우기

How to delete data from 2D matrix?

조회 수: 25 (최근 30일)
Wei Qing
Wei Qing 2013년 1월 9일
댓글: John D'Errico 2014년 6월 3일
a = 155 34,
127 134,
223 334,
135 366,
123 418,
Lets say I want to delete the second row data so a become like this.
a = 155 34,
223 334,
135 366,
123 418,

채택된 답변

Image Analyst
Image Analyst 2013년 1월 9일
  댓글 수: 2
Grace
Grace 2014년 6월 3일
Hi, extended from this question, what if i want to delete several rows from a matrix? How am i going to do this?
John D'Errico
John D'Errico 2014년 6월 3일
TRY SOMETHING! Logically, what would this do:
a([2 3],:) = [];
??
The trick to MATLAB is to try out what seems logical. Very often it will do what you might expect. Read the help where possible, but you will learn much by playing around.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by