资源简介
孤岛检测主动式AFD算法模型及其MATLAB实现
代码片段和文件信息
function [sysx0strts] = afd1(txuflag)
switch flag
case 0
[sysx0strts]=mdlInitializeSizes;
case 1
sys=[];
case 2
sys=[];
case 3
sys=mdlOutputs(txu);
case 4
sys=[];
case 9
sys=[];
otherwise
error([‘Unhandled flag = ‘num2str(flag)]);
end
%=============================================================================
% mdlInitializeSizes
function [sysx0strts]=mdlInitializeSizes
global f_i f_vo theta_i theta_vo isIslanding
f_i=50;
f_vo=50;
theta_i=0;
theta_vo=0;
isIslanding=0;
sizes = simsizes;
sizes.NumContStates = 0;
sizes.NumDiscStates = 0;
sizes.NumOutputs = 2;
sizes.NumInputs = 2;
sizes.DirFeedthrough = 1;
sizes.NumSampleTimes = 1; % at least one sample time is needed
sys =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2064 2020-07-27 12:19 AFD\afd1.m
文件 50428 2020-07-27 12:19 AFD\AFD1.mdl
文件 48550 2020-07-27 12:19 AFD\AFD1.mdl.r2010a
文件 162 2020-07-27 12:19 AFD\Unti
文件 48446 2020-07-27 12:19 AFD\wangtAFD1.mdl
评论
共有 条评论