erval (P_nach, N_str, h, P2, A, B, Q, R, Time2, Time3, X2 (:, N_str), poryadok, K_o, K_pr);
load Solve_Interval time_X X u X_o_discrete
time_X3 = time_X;
X3 = X;
u3 = u;
X_o_discrete3 = X_o_discrete;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%
toc
% ---------------------------------------------- --------------------------%
% Об'єднання інтервалів
time_X = [time_X1 time_X2 time_X3];
u = [u1 u2 u3];
X = [X1 X2 X3];
X_o_discrete = [X_o_discrete1 X_o_discrete2 X_o_discrete3];
% -------------------------------------------------- ----------------------%
% -------------------------------------------------- ----------------------%
% Побудова u (t) і X (t)
figure (3);
plot (time_X, u, 'r-', 'LineWidth', 2);
title ('u (t)');
xlabel ('t')
hl = legend ('u (t) - управління', 0);
set (hl, 'FontName', 'Courier');
grid on
В
figure (4);
plot (time_X, X (1, ​​:), 'r-', time_X, X_o_discrete (1, :), time_X, X_o_discrete (1, :) -0.8, 'LineWidth', 2)
hold on
title ('x_1 (t)');
xlabel ('t');
hl = legend ('X (t) - слідкування', 'X_o (t) - еталон', 'рівень', 0);
set (hl, 'FontName', 'Courier');
grid on
В
figure (5);
plot (time_X, X (2, :), 'r-', time_X, X_o_discrete (2, :), 'LineWidth', 2)
title ('x_2 (t)');
xlabel ('t');
hl = legend ('X (t) - слідкування', 'X_o (t) - еталон', 0);
set (hl, 'FontName', 'Courier');
grid on
В
figure (6);
plot (time_X, X (3, :), 'r-', time_X, X_o_discrete (3, :), 'LineWidth', 2)
title ('x_3 (t)');
xlabel ('t');
hl = legend ('X (t) - слідкування', 'X_o (t) - еталон', 0);
set (hl, 'FontName', 'Courier');
grid on
В
figure (7);
plot (time_X, X (4, :), 'r-', time_X, X_o_discrete (4, :), 'LineWidth', 2)
title ('x_4 (t)');
xlabel ('t');
hl = legend ('X (t) - слідкування', 'X_o (t) - еталон', 0);
set (hl, 'FontName', 'Courier');
grid on
В
figure (8);
plot (time_X, X (5, :), 'r-', time_X, X_o_discrete (5, :), 'LineWidth', 2)
title ('x_5 (t)');
xlabel ('t');
hl = legend ('X (t) - слідкування', 'X_o (t) - еталон', 0);
set (hl, 'FontName', 'Courier');
grid on
В
function Solve_Interval (P_nach, N_str, h, P2, A...