Command to delete last row and column of a matrix
79 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Can anyone help me with the command to delete the last row and column of a 6 x 6 matrix?
Regards
Swati
0 件のコメント
採用された回答
Alex Mcaulley
2020 年 1 月 28 日
A(:,end) = []; %Delete last column
A(end,:) = []; %Delete last row
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Particle Swarm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!