i want the plot as this figure:

t1=0.024934942578746697937373773042546
t2=0.049480663428674892204211876103623
t3=0.073253551446249896676617134859737
t4=0.095881199630495565880615199318259
t5=0.11700795711194655959310358044298
t6=0.1363003943635875927477781482227
t7=0.15345261966609088937500193824478
t8=0.16819135141725456884193011923064
t9=0.18028063867519389490367023494122
t10=0.18952609200141862076834501332858
t11=0.19577849294980553501413718323421
t12=0.19893664111442157919172260532557
t13=0.19894932805948448380986354760928
t14=0.19581634817447727513592110333613
t15=0.18958850260295146039225538942577
t16=0.18036659655686807780641359567233
x=0:10:60
y=-0.4:0.2:0.2
figure
plot([t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16],'-*')
set(gca,'xticklabel',x.')
set(gca,'xticklabel',y.')
grid on
xlabel('x')
ylabel('y(x)')

댓글 수: 1

Image Analyst
Image Analyst 2019년 3월 2일
Your attached PNG shows that it DOES plot it, so what do you mean when you say you "want the plot"?

답변 (1개)

Star Strider
Star Strider 2019년 3월 2일

0 개 추천

If you want to fit a sinusoidal function to your data, see for example: Curve fitting to a sinusoidal function (link).

이 질문은 마감되었습니다.

태그

질문:

2019년 3월 2일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by