Effacer les filtres
Effacer les filtres

How to assign only first member in matrix

1 vue (au cours des 30 derniers jours)
Rohan  Mehta
Rohan Mehta le 24 Juin 2019
Commenté : Rohan Mehta le 24 Juin 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 ?

Réponse acceptée

madhan ravi
madhan ravi le 24 Juin 2019
Modifié(e) : madhan ravi le 24 Juin 2019
q(t) = find(A == max1(t),1,'first')
  3 commentaires
madhan ravi
madhan ravi le 24 Juin 2019
see edited answer
Rohan  Mehta
Rohan Mehta le 24 Juin 2019
done,
Thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by