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

📄 simdopi2.m

📁 matlab遗传算法工具箱
💻 M
字号:
% SIMDOPI2.M      (Modell of DOPpelINTegrator, s-function)%% This function implements the modell of the DOPPELINTEGRATOR.%% Syntax:  [sys, x0] = simdopi2(t, x, u, flag)%% Input parameters:%    t         - given time point%    x         - current state vector%    u         - input vector%    flag      - flags%% Output parameters:%    sys       - Vector containing the new state derivatives%    x0        - initial value            % Author:     Hartmut Pohlheim% History:    17.12.93     file createdfunction [sys, x0] = simdopi2(t, x, u, flag);% Linear Systems Description   if abs(flag) == 1   	sys(1) = u(1);       % Derivatives   	sys(2) = x(1);       % Derivatives   elseif abs(flag) == 0   	sys=[2,0,0,1,0,0]; x0 = [0; -1];   else   	sys = [];		% Real time update (ignored).   end% End of function

⌨️ 快捷键说明

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