求助 matlab 高手 Inner matrix dimensions must agree
来源:学生作业帮 编辑:大师作文网作业帮 分类:英语作业 时间:2024/11/13 09:05:57
求助 matlab 高手 Inner matrix dimensions must agree
clc;clear all;
lawnum=1;n=6;d=1.5;l=1;kr=0.15;r=kr*l;a=0;
tao0=15*pi/180;
taoh=2*pi/n;thetah=taoh*d/(1+d);rc=0.94;
rpm=10;w=rpm*2*pi/60;th=thetah/w;
division=600;
j=0;
for k=0:taoh/division:taoh;
j=j+1;
T=k/taoh;
[S V A]=camlaw(T,lawnum);
s1(j)=k;s2(j)=S*taoh;v1(j)=w;v2(j)=V*taoh/th;a1(j)=0;a2(j)=A*taoh/th^2;
end
x1=(l+r*tan(tao0)-r*(s2-s1))*exp(i*s1)+a*exp(i*(pi/2+s1));
lx1=real(x1);ly1=imag(x1);
plot(lx1,ly1,'k','linewidth',2);
axis square;
grid on
到后面运行出现? Error using ==> mtimes
Inner matrix dimensions must agree.
Error in ==> profile at 14
x1=(l+r*tan(tao0)-r*(s2-s1))*exp(i*s1)+a*exp(i*(pi/2+s1));
clc;clear all;
lawnum=1;n=6;d=1.5;l=1;kr=0.15;r=kr*l;a=0;
tao0=15*pi/180;
taoh=2*pi/n;thetah=taoh*d/(1+d);rc=0.94;
rpm=10;w=rpm*2*pi/60;th=thetah/w;
division=600;
j=0;
for k=0:taoh/division:taoh;
j=j+1;
T=k/taoh;
[S V A]=camlaw(T,lawnum);
s1(j)=k;s2(j)=S*taoh;v1(j)=w;v2(j)=V*taoh/th;a1(j)=0;a2(j)=A*taoh/th^2;
end
x1=(l+r*tan(tao0)-r*(s2-s1))*exp(i*s1)+a*exp(i*(pi/2+s1));
lx1=real(x1);ly1=imag(x1);
plot(lx1,ly1,'k','linewidth',2);
axis square;
grid on
到后面运行出现? Error using ==> mtimes
Inner matrix dimensions must agree.
Error in ==> profile at 14
x1=(l+r*tan(tao0)-r*(s2-s1))*exp(i*s1)+a*exp(i*(pi/2+s1));
把所有的 * 改成 .* 就可以了.向量相乘除符号前要加一个点.
求助 matlab 高手 Inner matrix dimensions must agree
Matlab中Inner matrix dimensions must agree.
matlab中Inner matrix dimensions must agree,
matlab出错 “Inner matrix dimensions must agree.”
MATLAB :(Inner)Matrix dimensions must agree.
Inner matrix dimensions must agree
Inner matrix dimensions must agree.
Matlab出现Inner matrix dimensions must agree问题
matlab,Inner matrix dimensions must agree.哪里出错了
Matlab中Inner matrix dimensions must agree是怎么回事?
matlab“Inner matrix dimensions must agree.”这个错误怎么改啊
Matlab中出现Error using ==> *Inner matrix dimensions must agree