way to pull information from matrix - if X then store Y, but only if Y is not the last number in the column?
古いコメントを表示
Hi,
I'm looking to pull information from a matrix with an if statement. But when the if statement is true, only to pull the information if it is not the last row in the matrix. Is there a way to do this?
So for example, if column one is made up of 1's and 0's, I want it to store the information from the corresponding row's column two only when column one shows 1's, and only when it is not the last entry in the matrix.
Thanks in advance to any help offered.
Mamie
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!