plot point

조회 수: 4 (최근 30일)
Muruganandham Subramanian
Muruganandham Subramanian 2011년 6월 30일
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

채택된 답변

Paulo Silva
Paulo Silva 2011년 6월 30일
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*')

추가 답변 (1개)

Gerd
Gerd 2011년 6월 30일
Hi, use the interp1 function
result = interp1(x,y,65)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by