plot point

5 views (last 30 days)
Muruganandham Subramanian
Muruganandham Subramanian on 30 Jun 2011
Hi, If i take time in x-axis, x=[10 20 30 40 50 60 70 80 90]; and y=[0.001 .05 0.1 .16 .7 .8 .01 .5 .3]; after plotting this, i want to mark a point in y-axis at x=65; Pls help me. Thanks in advance

Accepted Answer

Paulo Silva
Paulo Silva on 30 Jun 2011
x=[10 20 30 40 50 60 70 80 90];
y=[0.001 .05 0.1 .16 .7 .8 .01 .5 .3];
plot(x,y)
hold on
yi = interp1(x,y,65);
plot(65,yi,'r*')

More Answers (1)

Gerd
Gerd on 30 Jun 2011
Hi, use the interp1 function
result = interp1(x,y,65)

Tags

Community Treasure Hunt

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

Start Hunting!