Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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!

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Dez. 2013
If you have your two vectors x and y
y0=interp1(x,y,x0)
  9 Kommentare
Slarn
Slarn am 28 Dez. 2013
Bearbeitet: Slarn am 28 Dez. 2013
ok. i uploaded the 5 files as below. thanks. have to run the file in order to obtain the Figure
Azzi Abdelmalek
Azzi Abdelmalek am 28 Dez. 2013
Bearbeitet: Azzi Abdelmalek am 28 Dez. 2013
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)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by