Removing ceratin columns from matrices
古いコメントを表示
Hello, I have code that has matrix K which is a 6x6 matrix. I want to remove certain columns from the K matrix to build a new matrix, Kca. The problem is it keeps updating Kca every time it removes a certain column, causing the next column to be removed the one I don't want or is out of bounds. Any ways around this? I've include my code.
採用された回答
その他の回答 (1 件)
Walter Roberson
2016 年 10 月 10 日
0 投票
Remove the columns starting from the last one and moving toward the first.
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!