Extract x-axis data point from a y-axis data point in a 2D plot, which is not in my input array.
Show older comments
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?
Answers (1)
KSSV
on 7 Sep 2018
yi = 14.04 ;
xi = interp1(y,x,yi) ;
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!