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!