matlab画响应曲线出错,程序如下:syms f g k m jsyms s ta=g/(j*s^3+m*s^2+k*s);b=ilaplace(a);j=0.003242;m=0.044;k=769;g=k*pi/9-m;b=1/k*(1-exp(-1/2*t/j*m)*cosh(1/2*t/j*(m^2-4*j*k)^(1/2))-exp(-1/2*t/j*m)*m/(m^2-4*j*k)^(1/2)*sinh(1/2*t/j*(m^2-4*
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 21:45:21
matlab画响应曲线出错,程序如下:syms f g k m jsyms s ta=g/(j*s^3+m*s^2+k*s);b=ilaplace(a);j=0.003242;m=0.044;k=769;g=k*pi/9-m;b=1/k*(1-exp(-1/2*t/j*m)*cosh(1/2*t/j*(m^2-4*j*k)^(1/2))-exp(-1/2*t/j*m)*m/(m^2-4*j*k)^(1/2)*sinh(1/2*t/j*(m^2-4*
matlab画响应曲线出错,
程序如下:
syms f g k m j
syms s t
a=g/(j*s^3+m*s^2+k*s);
b=ilaplace(a);
j=0.003242;
m=0.044;
k=769;
g=k*pi/9-m;
b=1/k*(1-exp(-1/2*t/j*m)*cosh(1/2*t/j*(m^2-4*j*k)^(1/2))-exp(-1/2*t/j*m)*m/(m^2-4*j*k)^(1/2)*sinh(1/2*t/j*(m^2-4*j*k)^(1/2)))*g;
t=(0:1:100);
plot(t,b)
报错:
Error using ==> plot
Conversion to double from sym is not possible.
Error in ==> sh2 at 11
plot(t,b)
matlab画响应曲线出错,程序如下:syms f g k m jsyms s ta=g/(j*s^3+m*s^2+k*s);b=ilaplace(a);j=0.003242;m=0.044;k=769;g=k*pi/9-m;b=1/k*(1-exp(-1/2*t/j*m)*cosh(1/2*t/j*(m^2-4*j*k)^(1/2))-exp(-1/2*t/j*m)*m/(m^2-4*j*k)^(1/2)*sinh(1/2*t/j*(m^2-4*
plot(t,subs(b))
把符号形b转换成double形