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

1 回表示 (過去 30 日間)
Parth Panchal
Parth Panchal 2017 年 12 月 3 日
コメント済み: Parth Panchal 2017 年 12 月 3 日
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
KL 2017 年 12 月 3 日
There's no attachment but do you have the data as a matrix or a figure?
Parth Panchal
Parth Panchal 2017 年 12 月 3 日

サインインしてコメントする。

採用された回答

KL
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 Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by