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

3 visualizaciones (últimos 30 días)
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?

Respuestas (1)

KSSV
KSSV el 7 de Sept. de 2018
yi = 14.04 ;
xi = interp1(y,x,yi) ;

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by