Remove Entire Column when a condition is met.
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am constructing a cost matrix for an association problem. It is a minimization problem and the cost matrix is structured in this way
C=[12 inf 13 inf inf inf inf;
13 inf 15 inf inf inf inf;
inf inf inf 14 inf 27 inf]
The aim for me is to remove the column in which I have inf elements only i.e. in this example i want to remove 2nd, 5th and 7th column from the cost matrix.
Thanks in advance for the help.
0 件のコメント
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!