想画个y=x.-0.1733*(x.^2+212^2-x.*212)的图,哪里错了?clearx=0:0.1:1000;y=x.-0.1733*(x.^2+212^2-x.*212);plot(x,y);y=x.-0.1733*(x.^2+212^2-x.*212)|Error:Unexpected MATLAB operator.

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 14:21:20

想画个y=x.-0.1733*(x.^2+212^2-x.*212)的图,哪里错了?clearx=0:0.1:1000;y=x.-0.1733*(x.^2+212^2-x.*212);plot(x,y);y=x.-0.1733*(x.^2+212^2-x.*212)|Error:Unexpected MATLAB operator.
想画个y=x.-0.1733*(x.^2+212^2-x.*212)的图,哪里错了?
clear
x=0:0.1:1000;
y=x.-0.1733*(x.^2+212^2-x.*212);
plot(x,y);
y=x.-0.1733*(x.^2+212^2-x.*212)
|
Error:Unexpected MATLAB operator.

想画个y=x.-0.1733*(x.^2+212^2-x.*212)的图,哪里错了?clearx=0:0.1:1000;y=x.-0.1733*(x.^2+212^2-x.*212);plot(x,y);y=x.-0.1733*(x.^2+212^2-x.*212)|Error:Unexpected MATLAB operator.
整体程序对,但y的表达式不对
y=x.-0.1733*(x.^2+212^2-x.*212)中x.-0.1733是什么运算关系,
若幂运算,y=x.^-0.1733*(x.^2+212^2-x.*212)
若乘法运算,y=x.*-0.1733*(x.^2+212^2-x.*212)
关键确定两者之间的正确运算关系