亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? addcontrolk.m

?? 用MATLAB中的SIMULINK工具實現(xiàn)DDS的仿真模型
?? M
字號:
function [sys,x0,str,ts] = addcontrolk(t,x,u,flag)
%SFUNTMPL General M-file S-function template
%   With M-file S-functions, you can define you own ordinary differential
%   equations (ODEs), discrete system equations, and/or just about
%   any type of algorithm to be used within a Simulink block diagram.
%
%   The general form of an M-File S-function syntax is:
%       [SYS,X0,STR,TS] = SFUNC(T,X,U,FLAG,P1,...,Pn)
%
%   What is returned by SFUNC at a given point in time, T, depends on the
%   value of the FLAG, the current state vector, X, and the current
%   input vector, U.
%
%   FLAG   RESULT             DESCRIPTION
%   -----  ------             --------------------------------------------
%   0      [SIZES,X0,STR,TS]  Initialization, return system sizes in SYS,
%                             initial state in X0, state ordering strings
%                             in STR, and sample times in TS.
%   1      DX                 Return continuous state derivatives in SYS.
%   2      DS                 Update discrete states SYS = X(n+1)
%   3      Y                  Return outputs in SYS.
%   4      TNEXT              Return next time hit for variable step sample
%                             time in SYS.
%   5                         Reserved for future (root finding).
%   9      []                 Termination, perform any cleanup SYS=[].
%
%
%   The state vectors, X and X0 consists of continuous states followed
%   by discrete states.
%
%   Optional parameters, P1,...,Pn can be provided to the S-function and
%   used during any FLAG operation.
%
%   When SFUNC is called with FLAG = 0, the following information
%   should be returned:
%
%      SYS(1) = Number of continuous states.
%      SYS(2) = Number of discrete states.
%      SYS(3) = Number of outputs.
%      SYS(4) = Number of inputs.
%               Any of the first four elements in SYS can be specified
%               as -1 indicating that they are dynamically sized. The
%               actual length for all other flags will be equal to the
%               length of the input, U.
%      SYS(5) = Reserved for root finding. Must be zero.
%      SYS(6) = Direct feedthrough flag (1=yes, 0=no). The s-function
%               has direct feedthrough if U is used during the FLAG=3
%               call. Setting this to 0 is akin to making a promise that
%               U will not be used during FLAG=3. If you break the promise
%               then unpredictable results will occur.
%      SYS(7) = Number of sample times. This is the number of rows in TS.
%
%
%      X0     = Initial state conditions or [] if no states.
%
%      STR    = State ordering strings which is generally specified as [].
%
%      TS     = An m-by-2 matrix containing the sample time
%               (period, offset) information. Where m = number of sample
%               times. The ordering of the sample times must be:
%
%               TS = [0      0,      : Continuous sample time.
%                     0      1,      : Continuous, but fixed in minor step
%                                      sample time.
%                     PERIOD OFFSET, : Discrete sample time where
%                                      PERIOD > 0 & OFFSET < PERIOD.
%                     -2     0];     : Variable step discrete sample time
%                                      where FLAG=4 is used to get time of
%                                      next hit.
%
%               There can be more than one sample time providing
%               they are ordered such that they are monotonically
%               increasing. Only the needed sample times should be
%               specified in TS. When specifying than one
%               sample time, you must check for sample hits explicitly by
%               seeing if
%                  abs(round((T-OFFSET)/PERIOD) - (T-OFFSET)/PERIOD)
%               is within a specified tolerance, generally 1e-8. This
%               tolerance is dependent upon your model's sampling times
%               and simulation time.
%
%               You can also specify that the sample time of the S-function
%               is inherited from the driving block. For functions which
%               change during minor steps, this is done by
%               specifying SYS(7) = 1 and TS = [-1 0]. For functions which
%               are held during minor steps, this is done by specifying
%               SYS(7) = 1 and TS = [-1 1].

%   Copyright 1990-2002 The MathWorks, Inc.
%   $Revision: 1.18 $

%
% The following outlines the general structure of an S-function.
%
switch flag,

  %%%%%%%%%%%%%%%%%%
  % Initialization %
  %%%%%%%%%%%%%%%%%%
  case 0,
    [sys,x0,str,ts]=mdlInitializeSizes;

  %%%%%%%%%%%%%%%
  % Derivatives %
  %%%%%%%%%%%%%%%
 % case 1,
 %   sys=mdlDerivatives(t,x,u);

  %%%%%%%%%%
  % Update %
  %%%%%%%%%%
  case 2,
    sys=mdlUpdate(t,x,u);

  %%%%%%%%%%%
  % Outputs %
  %%%%%%%%%%%
  case 3,
    sys=mdlOutputs(t,x,u);

  %%%%%%%%%%%%%%%%%%%%%%%
  % GetTimeOfNextVarHit %
  %%%%%%%%%%%%%%%%%%%%%%%
  case {1,4,9}
    sys=[];
  %mdlGetTimeOfNextVarHit(t,x,u);
  %%%%%%%%%%%%%
  % Terminate %
  %%%%%%%%%%%%%
  %case 9,
  %  sys=mdlTerminate(t,x,u);

  %%%%%%%%%%%%%%%%%%%%
  % Unexpected flags %
  %%%%%%%%%%%%%%%%%%%%
  otherwise
    error(['Unhandled flag = ',num2str(flag)]);

end

% end sfuntmpl

%
%=============================================================================
% mdlInitializeSizes
% Return the sizes, initial conditions, and sample times for the S-function.
%=============================================================================
%
function [sys,x0,str,ts]=mdlInitializeSizes

%
% call simsizes for a sizes structure, fill it in and convert it to a
% sizes array.
%
% Note that in this example, the values are hard coded.  This is not a
% recommended practice as the characteristics of the block are typically
% defined by the S-function parameters.
%
sizes = simsizes;

sizes.NumContStates  = 0;
sizes.NumDiscStates  = 1;
sizes.NumOutputs     = -1;
sizes.NumInputs      = -1;
sizes.DirFeedthrough = 1;
sizes.NumSampleTimes = 1;   % at least one sample time is needed

sys = simsizes(sizes);

%
% initialize the initial conditions
%
x0  = [0];

%
% str is always an empty matrix
%
str = [];

%
% initialize the array of sample times
%
ts  = [-1 0];

% end mdlInitializeSizes

%
%=============================================================================
% mdlOutputs
% Return the block outputs.
%=============================================================================
%

function sys=mdlUpdate(t,x,u)
sys=x+u;
function sys=mdlOutputs(t,x,u)

sys=x+u;
% end mdlOutputs

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级视频在线| 精品国产sm最大网站| 日韩女优av电影| 亚洲欧洲av另类| 久久99精品国产麻豆婷婷| 91片黄在线观看| 2021久久国产精品不只是精品| 国产精品九色蝌蚪自拍| 蜜桃视频第一区免费观看| 91久久精品一区二区| 国产午夜亚洲精品午夜鲁丝片| 亚洲bt欧美bt精品777| 成人中文字幕在线| 日韩一区二区三区视频在线观看| 亚洲视频一区在线| 韩国一区二区在线观看| 色婷婷一区二区| 精品日韩一区二区| 亚洲欧洲一区二区三区| 国内一区二区视频| 欧美专区日韩专区| 国产三级欧美三级日产三级99 | 成人免费毛片片v| 欧美日韩国产高清一区二区三区| 亚洲国产精品精华液ab| 午夜亚洲福利老司机| 成人app网站| 久久嫩草精品久久久久| 国产成人精品影视| 555www色欧美视频| 亚洲精品国产成人久久av盗摄| 久国产精品韩国三级视频| 欧美日韩中文字幕一区| 国产精品网站一区| 国产成人免费在线观看| 欧美大片一区二区| 日日夜夜精品视频天天综合网| 色婷婷亚洲婷婷| 国产精品成人在线观看| 国产成人免费视频精品含羞草妖精| 宅男噜噜噜66一区二区66| 亚洲资源中文字幕| 91蜜桃视频在线| 国产精品国产三级国产三级人妇| 韩国欧美国产一区| 欧美mv日韩mv国产网站app| 国产精品久久综合| 国产福利视频一区二区三区| 欧美精品一区二区三区久久久| 五月综合激情日本mⅴ| 在线精品视频小说1| 亚洲欧美日韩国产成人精品影院| 成人av中文字幕| 国产精品你懂的| 岛国精品在线观看| 亚洲国产精品黑人久久久| 成人av在线资源网| 自拍偷自拍亚洲精品播放| av不卡在线播放| 亚洲美女视频在线观看| 91福利视频在线| 亚洲伊人色欲综合网| 成人黄色在线视频| 亚洲欧洲成人自拍| 欧美性一二三区| 性久久久久久久| 欧美一区二区免费视频| 久久99精品国产麻豆婷婷洗澡| 欧美mv和日韩mv的网站| 国内精品嫩模私拍在线| 国产喂奶挤奶一区二区三区 | 久久日韩精品一区二区五区| 日韩av电影免费观看高清完整版| 日本韩国欧美三级| 午夜精品一区二区三区免费视频| 欧美精品123区| 狠狠色伊人亚洲综合成人| 国产女人18毛片水真多成人如厕| youjizz久久| 亚洲午夜激情网站| 51久久夜色精品国产麻豆| 久久精工是国产品牌吗| 国产日韩影视精品| 欧美日韩在线播| 日韩成人av影视| 国产亚洲综合在线| 在线免费观看一区| 精品中文字幕一区二区小辣椒| 国产亚洲自拍一区| 国产a久久麻豆| 亚洲激情成人在线| 久久综合九色欧美综合狠狠| 国产乱子伦视频一区二区三区| 亚洲欧美在线视频| www.在线成人| 日产欧产美韩系列久久99| 国产午夜精品久久久久久久 | 国产乱人伦偷精品视频免下载| 成人免费视频在线观看| 日韩欧美激情一区| 色哟哟一区二区| 国模无码大尺度一区二区三区| 亚洲精品成人悠悠色影视| 日韩精品一区二区三区蜜臀| 91丨porny丨在线| 青青草国产成人99久久| 国产精品国产三级国产aⅴ原创 | 五月天久久比比资源色| 亚洲国产精品99久久久久久久久| 欧美精品久久天天躁| 97久久人人超碰| 国产一区二区三区蝌蚪| 亚洲在线成人精品| 国产视频亚洲色图| 日韩视频在线一区二区| 日本韩国欧美三级| 成人av综合在线| 岛国av在线一区| 精品一区中文字幕| 99视频精品免费视频| 黄色日韩网站视频| 亚洲国产日韩一级| 中文字幕在线不卡一区二区三区| 日韩欧美一区在线观看| 在线看国产一区| 色悠久久久久综合欧美99| www.激情成人| 成人午夜看片网址| 成人午夜电影久久影院| 国产一区91精品张津瑜| 精品一区二区三区在线播放视频| 亚洲精品成a人| 自拍av一区二区三区| 国产精品婷婷午夜在线观看| 国产女同性恋一区二区| 国产欧美一区二区精品性色| www激情久久| 久久久精品免费免费| 精品国产乱码久久久久久影片| 成人免费视频免费观看| 成人激情小说乱人伦| 国产91对白在线观看九色| 国产成人精品综合在线观看| 国产精品一区久久久久| 夫妻av一区二区| av在线不卡免费看| 99久久精品国产导航| 日本高清不卡aⅴ免费网站| 色噜噜狠狠成人中文综合| 欧美中文一区二区三区| 91.xcao| 欧美福利视频一区| 在线观看国产一区二区| 色屁屁一区二区| 欧美日韩卡一卡二| 欧美电影免费观看高清完整版在线观看| 555夜色666亚洲国产免| 日韩视频在线永久播放| 精品对白一区国产伦| 国产精品美女久久久久久久| 精品国产自在久精品国产| 精品久久久久久久久久久久包黑料| 久久亚洲一区二区三区四区| 国产精品久久久久婷婷二区次| 亚洲精品免费看| 欧美aaa在线| 岛国精品在线观看| 欧美日韩一级二级三级| 精品国产91洋老外米糕| 亚洲视频一区二区免费在线观看| 午夜伦欧美伦电影理论片| 国产激情精品久久久第一区二区| 高清国产一区二区| 国产激情一区二区三区四区| 972aa.com艺术欧美| 日韩视频在线观看一区二区| 国产精品不卡在线观看| 日韩激情一二三区| 波多野结衣在线一区| 欧美二区三区的天堂| 欧美极品aⅴ影院| 一区二区三区精品在线| 亚洲www啪成人一区二区麻豆| 国产不卡视频一区二区三区| 欧美日韩mp4| 国产精品视频一二| 久久成人久久爱| 99re在线视频这里只有精品| 日韩欧美123| 亚洲一区影音先锋| 国产a精品视频| 精品欧美一区二区久久| 亚洲美女在线一区| 国产xxx精品视频大全| 欧美色图第一页| 亚洲特黄一级片| 国产成人一区在线| 在线亚洲一区二区| 中文成人av在线| 国产一区二区三区综合|