157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
y_open = y(j,:);
u_open = u(j,:);
## Plots
gset nokey
gset nogrid
gset format x "%4.1f"
gset format y "%4.1f"
gset term fig monochrome portrait fontsize 20 size 20 20 metric \
thickness 4
gset output "${sys}_nppp.fig"
title("");
xlabel("Time (s)");
ylabel("u");
subplot(2,1,2); plot(t,u,'-', T_open, u_open,"^");
ylabel("y");
subplot(2,1,1); plot(t,y,'-', T_open, y_open,"^");
oneplot;
gset output "${sys}_nppp.basis.fig"
title("");
xlabel("Time (s)");
ylabel("Basis functions");
plot(t_OL, Us);
|
|
|
>
>
|
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
y_open = y(j,:);
u_open = u(j,:);
## Plots
gset nokey
gset nogrid
gset format x "%.1f"
gset format y "%.2f"
gset term fig monochrome portrait fontsize 20 size 20 20 metric \
thickness 4
gset output "${sys}_nppp.fig"
title("");
xlabel("Time (s)");
ylabel("u");
subplot(2,1,2); plot(t,u,'-', T_open, u_open,"^");
ylabel("y");
subplot(2,1,1); plot(t,y,'-', T_open, y_open,"^");
oneplot;
gset term fig monochrome portrait fontsize 20 size 20 10 metric \
thickness 4
gset output "${sys}_nppp.basis.fig"
title("");
xlabel("Time (s)");
ylabel("Basis functions");
plot(t_OL, Us);
|