How to Find a Value From Another Value?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a matrix, so I would like to find a value from the first column by using values from the last columns. For example, I have an specific value from the last column which I found by suing "find". How can I then find the value from the first column from that specific row by using the last column value?
0 件のコメント
採用された回答
その他の回答 (1 件)
Andrei Bobrov
2017 年 12 月 7 日
編集済み: Andrei Bobrov
2017 年 12 月 7 日
A = reshape(1:16,4,[]); % Let A - your array (example)
out = A(A(:,end) == 14,1)
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!