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

 Réponse acceptée

bdtyatw
bdtyatw le 21 Mai 2023

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Embedded Coder 支持的硬件 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!