?? psim_ode.m
字號:
function R = psim_ode(sys_eq,X0,T,N)
% Compute flow pipe approximations for the `nonlinear` dynamics "dx/dt =
% f(x)".
%
% Syntax:
% "R = psim_ode(sys_eq,X0,T,N)"
%
% Description:
% The inputs are
%
% * "sys_eq": string containing file name of the derivative function
% for the ODE
%
% * "ode_param": optional parameters for the ODE file
%
% * "X0": a "linearcon" object representing initial set
%
% * "T": time step for the flow pipe approximation
%
% * "N": number of steps (flow pipe segments) to compute
%
% The output "R" is a cell array of "linearcon" objects, each representing
% an approximation to a flow pipe segments.
%
% See Also:
% fs_nonlin_map,seg_approx_ode,stretch_func_ode
R = {};
SP0 = vertices(X0);
t0 = 0;
for k = 1:N
fprintf(1,'%d/%d\n',k,N)
[SEG,SPf] = seg_approx_ode(sys_eq,ode_param,X0,SP0,t0,t0+T);
R{k} = SEG;
SP0 = SPf;
t0 = t0 + T;
end
return
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -