?? odeeul.m
字號(hào):
function [t,x,stats] = odeeul(func,dt,x0,options)
% Fixed step size euler integration
% Used only with discrete-time simulations, it takes one step from
% time 0 to dt and returns only the results at the end of the step.
%THIS IS NOT A GENERAL PURPOSE INTEGRATOR!
% 'dt' must be a scalar
xx0 =x0; % The dummy variable fixes a strange bug!?
xdot = feval(func,0,x0); % Get righthand side
x = xx0 + xdot * dt;
stats = 0; % To match the call to ode23; not used here
t = dt;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -