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

 Respuesta aceptada

bdtyatw
bdtyatw el 21 de Mayo de 2023

0 votos

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

Más respuestas (0)

Categorías

Más información sobre 等高线图 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Mayo de 2023

Respondida:

el 21 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!