Azzera filtri
Azzera filtri

How to assign only first member in matrix

1 visualizzazione (ultimi 30 giorni)
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 ?

Risposta accettata

madhan ravi
madhan ravi il 24 Giu 2019
Modificato: madhan ravi il 24 Giu 2019
q(t) = find(A == max1(t),1,'first')
  3 Commenti
Rohan  Mehta
Rohan Mehta il 24 Giu 2019
done,
Thank you so much

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by