⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demosystem.m

📁 微分方程解法D:matlab mmode.rar
💻 M
字号:
function demoSystem
% demoSystem  Solve system of two coupled first order ODEs
%
% Synopsis:  demoSystem
%
% Input:     none
%
% Output:    Plot of solution

y0 = [0; 2];    % Initial conditions stored in a column vector
tn = 3;
%  [t,y] = ode45('rhsSys',tn,y0);        %  ode45 solution
[t,y] = odeRK4sysv('rhsSys',tn,0.1,y0);  %  odeRK4sys solution
plot(t,y(:,1),'+',t,y(:,2),'o');
xlabel('t');  ylabel('y_1  and  y_2');  legend('y_1','y_2');

⌨️ 快捷键说明

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