Filter löschen
Filter löschen

How to assign only first member in matrix

1 Ansicht (letzte 30 Tage)
Rohan  Mehta
Rohan Mehta am 24 Jun. 2019
Kommentiert: Rohan Mehta am 24 Jun. 2019
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 ?

Akzeptierte Antwort

madhan ravi
madhan ravi am 24 Jun. 2019
Bearbeitet: madhan ravi am 24 Jun. 2019
q(t) = find(A == max1(t),1,'first')
  3 Kommentare
madhan ravi
madhan ravi am 24 Jun. 2019
see edited answer
Rohan  Mehta
Rohan Mehta am 24 Jun. 2019
done,
Thank you so much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by