This commit is contained in:
2023-11-14 17:10:27 +08:00
commit d5a822831c
423 changed files with 5909 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,23 @@
function [sys,x0,str,ts,SSC]=c7multi_step(t,~,~,flag,tTime,yStep)
switch flag
case 0 % initialization
[sys,x0,str,ts] = mdlInitializeSizes; SSC='DefaultSimState';
case 3 % computes the outputs
sys = mdlOutputs(t,tTime,yStep);
case {1, 2, 4, 9} % undefined flag
sys = [];
otherwise % error found
error(['Unhandled flag = ',num2str(flag)]);
end
end
function [sys,x0,str,ts] = mdlInitializeSizes
sizes = simsizes;
sizes.NumContStates = 0; sizes.NumDiscStates = 0;
sizes.NumOutputs = 1; sizes.NumInputs = 0;
sizes.DirFeedthrough = 0; sizes.NumSampleTimes = 1;
sys = simsizes(sizes);
x0 = []; str = []; ts = [0 0];
end
function sys = mdlOutputs(t,tTime,yStep)
i=find(tTime<=t); sys=yStep(i(end));
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB