Matlab编程后没法画图
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/21 00:11:28
Matlab编程后没法画图
是一个求导函数,程序编完后画图时候,显示Error using ==> plot
Vectors must be the same lengths.
下面是程序:
syms b L v k;
d=50;
p=5;
v=d/360*p;
L=v*t;
r=250.893;
m=492.002;
X=734.551;
c=12.0644;
b=acos((r.^2+(X-L).^2-m.^2)./(2*r*(X-L)));
k=b*180/pi-c;
syms t;
z=diff(k,1);
t=0:1:520;
plot(t,z)
是一个求导函数,程序编完后画图时候,显示Error using ==> plot
Vectors must be the same lengths.
下面是程序:
syms b L v k;
d=50;
p=5;
v=d/360*p;
L=v*t;
r=250.893;
m=492.002;
X=734.551;
c=12.0644;
b=acos((r.^2+(X-L).^2-m.^2)./(2*r*(X-L)));
k=b*180/pi-c;
syms t;
z=diff(k,1);
t=0:1:520;
plot(t,z)
syms b L v k;
d=50;
p=5;
v=d/360*p;
L=v*t;
r=250.893;
m=492.002;
X=734.551;
c=12.0644;
b=acos((r.^2+(X-L).^2-m.^2)./(2*r*(X-L)));
k=b*180/pi-c;
syms t;
z=diff(k,1);
t=0:1:520;
plot(t,z)
d=50;
p=5;
v=d/360*p;
L=v*t;
r=250.893;
m=492.002;
X=734.551;
c=12.0644;
b=acos((r.^2+(X-L).^2-m.^2)./(2*r*(X-L)));
k=b*180/pi-c;
syms t;
z=diff(k,1);
t=0:1:520;
plot(t,z)