How to delete data from 2D matrix?

24 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by