下列Matlab代码,能求解微分方程 y'(t) = 2*t , y(0) = 1的是( ) A: tspan = [0 5];<br> y0 = 0;<br> [t,y] = ode45(@(t,y) 2*t, tspan, y0); B: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*t, tspan, y0); C: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*y, tspan, y0); D: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*t*y, tspan, y0);
下列Matlab代码,能求解微分方程 y'(t) = 2*t , y(0) = 1的是( ) A: tspan = [0 5];<br> y0 = 0;<br> [t,y] = ode45(@(t,y) 2*t, tspan, y0); B: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*t, tspan, y0); C: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*y, tspan, y0); D: tspan = [0 5];<br>y0 = 1;<br>[t,y] = ode45(@(t,y) 2*t*y, tspan, y0);
产生周期为1的三角波信号,正确的代码是 A: t=0:1/1000:5;y=sawtooth(2*pi*t,0.5);号,正确的代码是 B: t=0:1/1000:5;y=sawtooth(2*pi*10*t,0.5);,正确的代码是 C: t=0:1/1000:5;y=square(2*pi*t,0.5);� D: t=0:1/1000:5;y=square(2*pi*10*t,0.5);
产生周期为1的三角波信号,正确的代码是 A: t=0:1/1000:5;y=sawtooth(2*pi*t,0.5);号,正确的代码是 B: t=0:1/1000:5;y=sawtooth(2*pi*10*t,0.5);,正确的代码是 C: t=0:1/1000:5;y=square(2*pi*t,0.5);� D: t=0:1/1000:5;y=square(2*pi*10*t,0.5);
已知T(1)=9,T(2)=8,T(0)=5,Total=T(1)+T(2)+T(0),则Total=()。
已知T(1)=9,T(2)=8,T(0)=5,Total=T(1)+T(2)+T(0),则Total=()。
以下程序的运行结果是voidswap1(intx[],inty[]){intt;t=x[0];x[0]=y[0];y[0]=t;}voidswap2(int*x,int*y){intt;t=*x;*x=*y;*y=t;}main(){inta[2]={3,5},b[2]={3,5};swap1(a,a+1);swap2(&b[0],&b[1]);printf("%d%d%d%d\n",a[0],a[1],b[0],b[1]);}
以下程序的运行结果是voidswap1(intx[],inty[]){intt;t=x[0];x[0]=y[0];y[0]=t;}voidswap2(int*x,int*y){intt;t=*x;*x=*y;*y=t;}main(){inta[2]={3,5},b[2]={3,5};swap1(a,a+1);swap2(&b[0],&b[1]);printf("%d%d%d%d\n",a[0],a[1],b[0],b[1]);}
t=0:1:5产生行向量t,各元素为0、1、2、3、4、5
t=0:1:5产生行向量t,各元素为0、1、2、3、4、5
在下面表达式中,y为“假”的表达式是()。 A: y=2==5 B: y=0!=1 C: y=2<5 D: y=!0==1
在下面表达式中,y为“假”的表达式是()。 A: y=2==5 B: y=0!=1 C: y=2<5 D: y=!0==1
已知T(1)=9,T(2)=8,T(0)=5,Total=T(1)+T(2)+T(0),则Total=()。 A: 9 B: 22 C: 8 D: 5
已知T(1)=9,T(2)=8,T(0)=5,Total=T(1)+T(2)+T(0),则Total=()。 A: 9 B: 22 C: 8 D: 5
【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
如何用Maltab求解 y'(t) = 2*t , y(0) = 0?
如何用Maltab求解 y'(t) = 2*t , y(0) = 0?
如下命令中不能实现如下微分方程组[img=327x203]17e443a5d83ce02.png[/img],在初值条件[img=172x112]17e443a5e2ead01.png[/img]下的特解求解的是: A: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 't') B: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1, y(0)=0', 't') C: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0') D: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 'x')
如下命令中不能实现如下微分方程组[img=327x203]17e443a5d83ce02.png[/img],在初值条件[img=172x112]17e443a5e2ead01.png[/img]下的特解求解的是: A: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 't') B: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1, y(0)=0', 't') C: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0') D: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 'x')