📄 defant_s.m
字号:
function [sys,x0,str,ts] = defant_s(t,x,u,flag, restParam)%DEFANT_S S-function for antenna definition.%%--------%Synopsis:% [sys,x0,str,ts] = pantpat3_s(t,x,u,flag,restParam) %%Description:% S-function for antenna definition.%% The general form of an M-File S-function syntax is:% [SYS,X0,STR,TS] = SFUNC(T,X,U,FLAG,P1,...,Pn)%% Optional parameters, P1,...,Pn can be provided to the S-function and% used during any FLAG operation.%%Output and Input:%%Known Bugs:%%References:% [1]: Bj鰎klund S.: "DBT, A MATLAB Toolbox for Radar Signal Processing.% Reference Guide", FOA-D--9x-00xxx-408--SE, To be published.%%See Also:% % * DBT, A Matlab Toolbox for Radar Signal Processing *% (c) FOA 1994-99. See the file dbtright.m for copyright notice.%% Start : 0001xx NN NN (aaaa).% Latest change: $Date: 2000/09/16 09:33:25 $ $Author: svabj $.% $Revision: 1.4 $% *****************************************************************************switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 3, sys=mdlOutputs(t,x,u,restParam); case {1, 2, 4, 9} sys=[]; % Unused flags otherwise error(['Unhandled flag = ',num2str(flag)]);end%switch%endfunction defant_s%%=============================================================================% 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.sizes = simsizes;sizes.NumContStates = 0;sizes.NumDiscStates = 0;sizes.NumOutputs = 1;sizes.NumInputs = 0;sizes.DirFeedthrough = 1;sizes.NumSampleTimes = 1; % at least one sample time is neededsys = simsizes(sizes);% initialize the initial conditionsx0 = [];% str is always an empty matrixstr = [];% initialize the array of sample timests = [0 0];% end mdlInitializeSizes%%=============================================================================% mdlOutputs% Return the block outputs.%=============================================================================%function sys=mdlOutputs(t,x,u,restParam) outVar1 = defant(restParam{:}); % Define the antenna by a DBT function. putoutvar % Clear the variable "inVar1" and puts the output variable "outVar1" % to the next Simulink block.% end mdlOutputs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -