Determine the Y value from a given X from the generated figure?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
May I know how to determine the Y value from a given X from the generated figure? As I do not have any y equation.
attached is the matlab file.
Thanks a lot!
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 12 月 27 日
If you have your two vectors x and y
y0=interp1(x,y,x0)
9 件のコメント
Azzi Abdelmalek
2013 年 12 月 28 日
編集済み: Azzi Abdelmalek
2013 年 12 月 28 日
This is your plot
figure
x=[0:(D*1000)/760:(D*1000)]
y=delta(80:840,620);
plot(x,y); %plot line y 620
If you want y0 corresponding to x0=D/2
x0=D/2
y0=interp1(x,y,x0)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!