请问下列MATLAB程序哪里错误clear allm=0.2;w=3;b=0.8;A=0.2;xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A',''t);xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');t=linspace(0,8,200);xf1=eval(xf);xd1=eval(xd);hold onb=0.99*w;xd2=eval(xd);plot(t,xf1,

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/29 01:05:12
请问下列MATLAB程序哪里错误clearallm=0.2;w=3;b=0.8;A=0.2;xf=dsolve(''D2x=-w*w*x'',''Dx(0)=0,x(0)=A'',''''t);xd=dsolve

请问下列MATLAB程序哪里错误clear allm=0.2;w=3;b=0.8;A=0.2;xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A',''t);xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');t=linspace(0,8,200);xf1=eval(xf);xd1=eval(xd);hold onb=0.99*w;xd2=eval(xd);plot(t,xf1,
请问下列MATLAB程序哪里错误
clear all
m=0.2;w=3;
b=0.8;A=0.2;
xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A',''t);
xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');
t=linspace(0,8,200);
xf1=eval(xf);
xd1=eval(xd);
hold on
b=0.99*w;
xd2=eval(xd);
plot(t,xf1,':r',t,xd1,'-b',t,xd2,'-k',t,zeros(1,200),'-r');
legend('xf1','xd1','xd2');
axis([0,8,-0.25,0.25]);
title('阻尼振动曲线');

请问下列MATLAB程序哪里错误clear allm=0.2;w=3;b=0.8;A=0.2;xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A',''t);xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');t=linspace(0,8,200);xf1=eval(xf);xd1=eval(xd);hold onb=0.99*w;xd2=eval(xd);plot(t,xf1,
改好后可运行,已调试
clear all
m=0.2;w=3;
b=0.8;A=0.2;
xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A','t');
xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');
t=linspace(0,8,200);
xf1=eval(xf);
xd1=eval(xd);
hold on
b=0.99*w;
xd2=eval(xd);
plot(t,xf1,': r',t,xd1,'-b',t,xd2,'-k',t,zeros(1,200),'-r');
legend('xf1','xd1','xd2');
axis([0,8,-0.25,0.25]);
title('阻尼振动曲线');

请问下列MATLAB程序哪里错误clear allm=0.2;w=3;b=0.8;A=0.2;xf=dsolve('D2x=-w*w*x','Dx(0)=0,x(0)=A',''t);xd=dsolve('D2x=-2*b*Dx-w*w*x','Dx(0)=0,x(0)=A','t');t=linspace(0,8,200);xf1=eval(xf);xd1=eval(xd);hold onb=0.99*w;xd2=eval(xd);plot(t,xf1, matlab中else if语句只执行了第二句,程序没问题,逻辑上哪里有错误?weight=input('the weight of your purse:');if weight 下列C语言程序哪有错误?用C语言编写编写程序哪有错误? 请问下面的matlab程序哪里出错了?请帮我改正一下,function[f,k]=sconv(f1,f2,k1,k2,p) %计算连续 问关于mathematica软件的问题请问我要求如图的两个Bessel函数的偏导,提示错误,这样输入程序哪里出问题了? 帮忙计算一个画一个matlab图,我这个程序不知道哪里有错误.x=0:0.02:1000;y=0.8/sqrt(1.288+0.0894*sin(x*15000));plot(x,y) matlab曲线拟合程序有错误 希望别人能帮我指点?感谢! matlab中拟合曲线的问题 谁能帮我查出为何这个程序是错误的啊? 一个C程问题.编写程序,输入x,计算并输出下列分段函数的值(保留三围小数)y=f(x)=1/x(x≠0) ,=0(x=0)下面是我写的,请问哪里有错误.#includeint main(void){double x,y;(定义这边我不知道该怎么定义 小弟刚学习matlab,编了个程序,但是不知道为什么错误在哪里,程序如下d=100:0.1:2000x1=35+(0.019*(d-100))x2=0.15/(4*pi*d)x3=1000p=x1*x2*x2*x3*x3figure(1)subplot(1,1,1)plot(d,p)错误在这句话x2=0.15/(4*pi*d) matlab 运行下面的程序出现一些错误,请帮忙看看错误在哪里,谢谢.程序syms x n mn=0;m=1377*10^6;x=0.1:0.01:6;f(x)=(x.*19.1*300*300*pi.*(1-(sin(2*pi.*x))/(2*pi.*x))-n)/((3*x-1.25)*360);plot(x,f(x))运行出错? Subscript indices m 下列有关氢氧化钠性质的说法错误的是,答案是固体氢氧化钠有挥发性,请问哪里错了 求下题的MATLAB程序 最小二乘法的matlab程序 求下式的Matlab程序 matlab 程序含义 高斯列主元消元法的matlab程序 用matlab程序法编出高斯消元法