用matlab画图 y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);a=0.89b=0.60>> h=-0.6:0.01:0.6;>> y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);Error using ==> mtimesInner matrix dimensions must agree.怎么老出现

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 17:31:22
用matlab画图y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);a=0.89b=0.60>>h=-0.6:0.01:0.

用matlab画图 y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);a=0.89b=0.60>> h=-0.6:0.01:0.6;>> y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);Error using ==> mtimesInner matrix dimensions must agree.怎么老出现
用matlab画图 y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);
a=0.89
b=0.60
>> h=-0.6:0.01:0.6;
>> y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);
Error using ==> mtimes
Inner matrix dimensions must agree.
怎么老出现这个问题,

用matlab画图 y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);a=0.89b=0.60>> h=-0.6:0.01:0.6;>> y=2.45*a*h.*1/b*sqrt(b^2-h.^2)-2.45*a*b*asin(sqrt(b^2-h.^2)/b);Error using ==> mtimesInner matrix dimensions must agree.怎么老出现
1/b*sqrt(b^2-h.^2)
乘号换成点乘