How to assign only first member in matrix
1 回表示 (過去 30 日間)
古いコメントを表示
I am using q(t) = find(A == max1(t));
But problem here is in max1(4) has value of 134 and in A 134 is repeated two times I want only first location of 134 how to do that ?
0 件のコメント
採用された回答
madhan ravi
2019 年 6 月 24 日
編集済み: madhan ravi
2019 年 6 月 24 日
q(t) = find(A == max1(t),1,'first')
3 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!