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

 Akzeptierte Antwort

bdtyatw
bdtyatw am 21 Mai 2023

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Tags

Gefragt:

am 21 Mai 2023

Beantwortet:

am 21 Mai 2023

Community Treasure Hunt

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

Start Hunting!