x =[-3:0.01:3];
y = xsin(1/x);
figure,plot(x,y)
错误使用 /
矩阵维度必须一致。
刚学Matlab,这个报错啥问题呀,为什么不让我用/

 Accepted Answer

bdtyatw
bdtyatw on 21 May 2023

0 votes

仅供参考
x =[-3:0.01:3];
y = x.*sin(1./x);
figure,plot(x,y)

More Answers (0)

Categories

Tags

Asked:

on 21 May 2023

Answered:

on 21 May 2023

Community Treasure Hunt

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

Start Hunting!