Determine the Y value from a given X from the generated figure?

1 次查看(过去 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!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-12-27
If you have your two vectors x and y
y0=interp1(x,y,x0)
  9 个评论
Slarn
Slarn 2013-12-28
编辑:Slarn 2013-12-28
ok. i uploaded the 5 files as below. thanks. have to run the file in order to obtain the Figure
Azzi Abdelmalek
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 CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by