Matlab平方怎么输入t=(-10*pi:0.001:10*pi);y= mpower(sin(5*t),2);plot(t,y,'-b')grid onaxis tight为什么提示错误?

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/17 10:14:10

Matlab平方怎么输入
t=(-10*pi:0.001:10*pi);
y= mpower(sin(5*t),2);
plot(t,y,'-b')
grid on
axis tight
为什么提示错误?

you can type
y= sin(5*t).^2