matrix operation
古いコメントを表示
sir how to remove a specific element in an row or column matrix that is in a matrix a=[1 3 3 4] how to remove 4Th element so that i need to have answer a=[1 3 3]
採用された回答
その他の回答 (1 件)
Paulo Silva
2011 年 4 月 7 日
More examples to add to Sean ones
a(end)=[] %remove the last element
a(a~=1 & a~3)=[] %remove all elements different from 1 and 3
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!