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

 采纳的回答

bdtyatw
bdtyatw 2023-5-21

0 个投票

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 等高线图 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!