Extract x-axis data point from a y-axis data point in a 2D plot, which is not in my input array.
이전 댓글 표시
Hi, I am plotting the performance curve of a motor, with time and speed on X and Y-axis respectively. I am able to plot the graph but I need to extract an x-value for a certain y-value (which is not in my input array) from the plot. Interpolate function is able to overlay another graph but I am not able to reach up to the exact x-axis value for a pre-evaluated y-axis value.
I have my X from 0.1 to 1.0, Y from 0.0 to 15.6 rpm. I need to evaluate (x) exactly for 14.04 value of y. Is there a specific way?
답변 (1개)
KSSV
2018년 9월 7일
yi = 14.04 ;
xi = interp1(y,x,yi) ;
카테고리
도움말 센터 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!