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/11/01 13:23:00
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.
xݑOo0ƿUiR[m'i5|Лm ͟ũ8 X]6ioӴԯi Mb˯yvr3ξ.v?>?<Ȳ$C}).jq3A1X$(A7\0Yw mzuSVFSndym+hӱg?2nnOTɷĪ?A1 b{> ˃ٶrC|/Oޖ'rA3*o.>~VʯZk3n^׋cޢhHij kHfW <]P E&y"5kA/B џKqX{.hqbc0Yq(S@M2ʘe,Bwb1K'NܕEtB\mN

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)

结果