MATLAB程序会提示未定义函数或变量x,怎么解决
G(S)=num/den;num=[m*l/q00];den=[1b*(Im*l^2)/q-(Mm)*m*g*l/q-b*m*g*l/q0];q=(Mm)*(Im*l^2...
G(S)=num/den;
num = [m*l/q 0 0];
den = [1 b*(I m*l^2)/q -(M m)*m*g*l/q -b*m*g*l/q 0];
q = (M m)*(I m*l^2)-(m*l)^2;
M = 0.424;
m = 0.2;
b = 0.1;
I = 0.006;
g = 9.8;
l = 0.3;
[r,p,k] = residue(num,den);
s = p
t=0:0.005:5;
impulse(num,den,t)
axis([0 1 0 60])
grid
出现未定义num 展开
num = [m*l/q 0 0];
den = [1 b*(I m*l^2)/q -(M m)*m*g*l/q -b*m*g*l/q 0];
q = (M m)*(I m*l^2)-(m*l)^2;
M = 0.424;
m = 0.2;
b = 0.1;
I = 0.006;
g = 9.8;
l = 0.3;
[r,p,k] = residue(num,den);
s = p
t=0:0.005:5;
impulse(num,den,t)
axis([0 1 0 60])
grid
出现未定义num 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询