how can i find max value in the 2d plot graph with x axis location ?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
KL
2017-12-3
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);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!