Matlab程序提示错误:Error using * Inner matrix dimensions must agree.Matlab程序:x=0.01:0.01:9; y=(4.5-x)*sqrt(9*x-x.^2); 提示:Error using * Inner matrix dimensions must agree.
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 16:30:25
![Matlab程序提示错误:Error using * Inner matrix dimensions must agree.Matlab程序:x=0.01:0.01:9; y=(4.5-x)*sqrt(9*x-x.^2); 提示:Error using * Inner matrix dimensions must agree.](/uploads/image/z/7835736-48-6.jpg?t=Matlab%E7%A8%8B%E5%BA%8F%E6%8F%90%E7%A4%BA%E9%94%99%E8%AF%AF%EF%BC%9AError+using+%2A+Inner+matrix+dimensions+must+agree.Matlab%E7%A8%8B%E5%BA%8F%EF%BC%9Ax%3D0.01%3A0.01%3A9%3B+y%3D%284.5-x%29%2Asqrt%289%2Ax-x.%5E2%29%3B+%E6%8F%90%E7%A4%BA%EF%BC%9AError+using+%2A+Inner+matrix+dimensions+must+agree.)
Matlab程序提示错误:Error using * Inner matrix dimensions must agree.Matlab程序:x=0.01:0.01:9; y=(4.5-x)*sqrt(9*x-x.^2); 提示:Error using * Inner matrix dimensions must agree.
Matlab程序提示错误:Error using * Inner matrix dimensions must agree.
Matlab程序:
x=0.01:0.01:9;
y=(4.5-x)*sqrt(9*x-x.^2);
提示:Error using *
Inner matrix dimensions must agree.
Matlab程序提示错误:Error using * Inner matrix dimensions must agree.Matlab程序:x=0.01:0.01:9; y=(4.5-x)*sqrt(9*x-x.^2); 提示:Error using * Inner matrix dimensions must agree.
程序改成如下:(注:你少加了个点,在(4.5-x)后面加点)
x=0.01:0.01:9;
y=(4.5-x).*sqrt(9*x-x.^2);
plot(x,y)
结果