-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht_f_Ermittlung.m
59 lines (49 loc) · 2.01 KB
/
t_f_Ermittlung.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
classdef t_f_Ermittlung < matlab.System
% untitled2 Add summary here
%
% This template includes the minimum set of functions required
% to define a System object with discrete state.
% Public, tunable properties
properties
end
properties(DiscreteState)
end
% Pre-computed constants
properties(Access = private)
end
methods(Access = protected)
function setupImpl(obj)
% Perform one-time calculations, such as computing constants
end
function [t_f_rec,Symp_A1,Symp_A2,Symp_A3,Symp_A4,Symp_A5,Symp_B1,Symp_B2,Symp_B3,Symp_B4,Symp_B5,Symp_S1,Symp_S2] = stepImpl(obj,Symp_series)
% Implement algorithm. Calculate y as a function of input u and
% discrete states.
% zeitPkt = 1;
% if zeitPkt
while Symp_series(1)~=0 || Symp_series(2)~=0
% if Symp_series(1)~=0 || Symp_series(2)~=0 || Symp_series(3)~=0 || Symp_series(4)~=0 || Symp_series(5)~=0 || Symp_series(6)~=0 || Symp_series(7)~=0 || Symp_series(8)~=0 || Symp_series(9)~=0 || Symp_series(10)~=0 || Symp_series(11)~=0 || Symp_series(12)~=0
t_f_rec = getCurrentTime(obj);
Symp_A1 = Symp_series(1);
Symp_A2 = Symp_series(2);
Symp_A3 = Symp_series(3);
Symp_A4 = Symp_series(4);
Symp_A5 = Symp_series(5);
Symp_B1 = Symp_series(6);
Symp_B2 = Symp_series(7);
Symp_B3 = Symp_series(8);
Symp_B4 = Symp_series(9);
Symp_B5 = Symp_series(10);
Symp_S1 = Symp_series(11);
Symp_S2 = Symp_series(12);
% zeitPkt = 0;
end
% else
% t_f_rec = 20;
% end
% t_f_rec = Symp_series;
end
function resetImpl(obj)
% Initialize / reset discrete-state properties
end
end
end