How to change matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 6*3 matrix and I want to change to 6*2 matrix, how can I do it?
example:
N1=[1 2 3;4 5 6]
then
N1=[1 2;4 5]
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 6 月 1 日
編集済み: Azzi Abdelmalek
2013 年 6 月 1 日
N1=[1 2 3;4 5 6]
N1=N1(:,1:2) % : means all lines, and 1:2 means column 1 to 2
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!