how to find a certain coordinate value in a curve
조회 수: 2(최근 30일)
Hi everyone, i need help.
Suppose i have a curve data as i attached. How do i find a B value that correspond to certain A value from that curve?
%%IMPORT OUTPUT FILE INTO MATLAB
thanks for your help!
Star Strider 2017년 4월 7일
Ask the max function for two outputs. The second is the index of the first occurrence of the maximum in your vector, and use the index to define the corresponding value of ‘y’:
[A,idx] = max(X);
B = y(idx);