Extract x-axis data point from a y-axis data point in a 2D plot, which is not in my input array.

3 vues (au cours des 30 derniers jours)
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?

Réponses (1)

KSSV
KSSV le 7 Sep 2018
yi = 14.04 ;
xi = interp1(y,x,yi) ;

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by