ex5_12.m

来自「Advanced Engineering Mathematics using M」· M 代码 · 共 12 行

M
12
字号
% EX5_12.M Verify Example 5.12 using dsolve%  Dx1=x1+x2; Dx2=x2;  In result x=x1, y=x2.% (This requires Symbolic Math Toolbox)fprintf('Solution of system of Example 5.12 x=x1,y=x2 \n')[x,y]=dsolve('Dx=x+y','Dy=y')fprintf('Strike a key to continue \n')pausefprintf('Solve system with initial conditions \n')[x,y]=dsolve('Dx=x+y','Dy=y','x(0)=1,y(0)=0')%% Experiment a bit with other possibilities %  for initial conditions or another system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?