how to delete a row from the matrix??

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 件のコメント

Jan
Jan 2013 年 1 月 9 日
編集済み: Jan 2013 年 1 月 9 日
Please use meaningful tags. You can assume that a lot of questions concern "matlab code" in this forum.
The basic usage of Matlab is explained in the Getting Started chapters of the documentation. It is much more efficient for you and for the contributors of this forum, when you read the documentation before you ask a question. Thanks.
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".

サインインしてコメントする。

 採用された回答

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by