Effacer les filtres
Effacer les filtres

how can i find max value in the 2d plot graph with x axis location ?

3 vues (au cours des 30 derniers jours)
Parth Panchal
Parth Panchal le 3 Déc 2017
Commenté : Parth Panchal le 3 Déc 2017
I have one output that i attached here. My question is how can i find the max value in xygraph with location? means where is my max point in y direction and what is value at x?
  2 commentaires
KL
KL le 3 Déc 2017
There's no attachment but do you have the data as a matrix or a figure?

Connectez-vous pour commenter.

Réponse acceptée

KL
KL le 3 Déc 2017
Looks like you simply want to extract the index of the max value from powerDensity vector,
[maxPD,indx] = max(powerDensity);
%now to find the distance, use this index on distance vector
maxDist = distance(indx);

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots 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