55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
if Delta_ol>0 # Intermittent control
T_ol = 0:dt:Delta_ol; # Create the open-loop time vector
else
T_ol = [0,dt];
Delta_ol = dt;
endif
t_last = 2*t(length(t));
T_cl = 0:Delta_ol:t_last-Delta_ol; # Closed-loop time vector
T = 0:dt:t_last; # Overall time vector
## Lengths thereof
n_Tcl = length(T_cl);
n_ol = length(T_ol);
n_T = length(T);
|
|
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
if Delta_ol>0 # Intermittent control
T_ol = 0:dt:Delta_ol; # Create the open-loop time vector
else
T_ol = [0,dt];
Delta_ol = dt;
endif
t_last = t(length(t));
T_cl = 0:Delta_ol:t_last-Delta_ol; # Closed-loop time vector
T = 0:dt:t_last; # Overall time vector
## Lengths thereof
n_Tcl = length(T_cl);
n_ol = length(T_ol);
n_T = length(T);
|