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

📄 f.m

📁 matlab编程
💻 M
字号:
function res = F(I,M,V,ss)
% This function is used by Runge-Kutta order 4 method
% (Algorithm 5.7) to define the functions on the right
% hand side in the differential equations.
s = ss{I};
if M == 2
   g = inline(s,'t','y1','y2');
   res = g(V(1),V(2),V(3));
elseif M == 3
   g = inline(s,'t','y1','y2','y3');
   res = g(V(1),V(2),V(3),V(4));
elseif M == 4
   g = inline(s,'t','y1','y2','y3','y4');
   res = g(V(1),V(2),V(3),V(4),V(5));
elseif M == 5
   g = inline(s,'t','y1','y2','y3','y4','y5');
   res = g(V(1),V(2),V(3),V(4),V(5),V(6));
elseif M == 6
   g = inline(s,'t','y1','y2','y3','y4','y5','y6');
   res = g(V(1),V(2),V(3),V(4),V(5),V(6),V(7));
else
   g = inline(s,'t','y1','y2','y3','y4','y5','y6','y7');
   res = g(V(1),V(2),V(3),V(4),V(5),V(6),V(7),V(8));
end;




⌨️ 快捷键说明

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