Inner matrix dimensions must agree.l1=36.5; l2=136.5;l3=100; l4=173;syms y a b q o ho=0:1:360;y=sqrt(l1^2+(l2-l1+l3)^2+2*l1*(l2-l1+l3)*cos(o));a=asin(sin(o).*l1*y.^-1);b=acos((y.^2+l3^2-l2^2).*(2*y*l3).^-1);q=b-a;h=l3+l4-l3*cos(60-q)-sqrt(l4^2-(l3.*s

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 00:54:05
Innermatrixdimensionsmustagree.l1=36.5;l2=136.5;l3=100;l4=173;symsyabqoho=0:1:360;y=sqrt(l1^2+(l2-l1

Inner matrix dimensions must agree.l1=36.5; l2=136.5;l3=100; l4=173;syms y a b q o ho=0:1:360;y=sqrt(l1^2+(l2-l1+l3)^2+2*l1*(l2-l1+l3)*cos(o));a=asin(sin(o).*l1*y.^-1);b=acos((y.^2+l3^2-l2^2).*(2*y*l3).^-1);q=b-a;h=l3+l4-l3*cos(60-q)-sqrt(l4^2-(l3.*s
Inner matrix dimensions must agree.
l1=36.5;
l2=136.5;
l3=100;
l4=173;
syms y a b q o h
o=0:1:360;
y=sqrt(l1^2+(l2-l1+l3)^2+2*l1*(l2-l1+l3)*cos(o));
a=asin(sin(o).*l1*y.^-1);
b=acos((y.^2+l3^2-l2^2).*(2*y*l3).^-1);
q=b-a;
h=l3+l4-l3*cos(60-q)-sqrt(l4^2-(l3.*sin(60-q)).^2);
plot(o,h)

Inner matrix dimensions must agree.l1=36.5; l2=136.5;l3=100; l4=173;syms y a b q o ho=0:1:360;y=sqrt(l1^2+(l2-l1+l3)^2+2*l1*(l2-l1+l3)*cos(o));a=asin(sin(o).*l1*y.^-1);b=acos((y.^2+l3^2-l2^2).*(2*y*l3).^-1);q=b-a;h=l3+l4-l3*cos(60-q)-sqrt(l4^2-(l3.*s
矩阵计算维数不相容.
a=asin(sin(o).*l1.*y.^-1); %%(在乘号之间加了点)