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

2 ビュー (過去 30 日間)
Muiz Vhora
Muiz Vhora 2018 年 9 月 7 日
回答済み: KSSV 2018 年 9 月 7 日
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
KSSV 2018 年 9 月 7 日
yi = 14.04 ;
xi = interp1(y,x,yi) ;

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by