how can i find max value in the 2d plot graph with x axis location ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Parth Panchal
el 3 de Dic. de 2017
Comentada: Parth Panchal
el 3 de Dic. de 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 comentarios
Respuesta aceptada
KL
el 3 de Dic. de 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);
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!