How to read the desired coordinates from this image and find the coordinates with the highest value

조회 수: 1(최근 30일)
kyungdoo lee
kyungdoo lee 2021년 10월 20일
댓글: kyungdoo lee 2021년 10월 26일
I want to know how to read the desired coordinates from this image and find the coordinates with the highest value.
There is an attachment.

채택된 답변

KSSV
KSSV 2021년 10월 20일
You have plotted this image with the coordinates in hand. USe max function to get the maximum value. Read about function max.
% Example
[X,Y,Z] = peaks(100) ;
[val,idx] = max(Z(:)) ;
surf(X,Y,Z);
hold on
plot3(X(idx),Y(idx),Z(idx),'*r')

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by