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 ?

采纳的回答

madhan ravi
madhan ravi 2019-6-24
编辑:madhan ravi 2019-6-24
q(t) = find(A == max1(t),1,'first')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by