Remove unnecessary calls to "figure"

This commit is contained in:
2024-03-26 17:57:01 +01:00
parent eb3f949046
commit 6db514f7d7
7 changed files with 8 additions and 28 deletions

View File

@@ -28,7 +28,6 @@ load('rotating_generic_plants.mat', 'Gs', 'Wzs');
%% Bode plot of the direct and coupling term for Integral Force Feedback - Effect of rotation
figure;
freqs = logspace(-2, 1, 1000);
figure;
@@ -120,13 +119,12 @@ linkaxes([ax1,ax2],'y');
%% Root Locus for the Decentralized Integral Force Feedback controller
figure;
Kiff = 1/s*eye(2);
gains = logspace(-2, 4, 300);
Wz_i = [1,3,4];
figure;
hold on;
for i = 1:length(Wz_i)
plot(real(pole(Gs{Wz_i(i)}({'fu', 'fv'}, {'Fu', 'Fv'})*Kiff)), imag(pole(Gs{Wz_i(i)}({'fu', 'fv'}, {'Fu', 'Fv'})*Kiff)), 'x', 'color', colors(i,:), ...

View File

@@ -227,10 +227,9 @@ title('Zoom on controller pole')
kps = [2, 20, 40]*(mn + ms)*Wz^2;
%% Root Locus: Effect of the parallel stiffness on the attainable damping
figure;
gains = logspace(-2, 4, 500);
figure;
hold on;
for kp_i = 1:length(kps)
kp = kps(kp_i); % Parallel Stiffness [N/m]

View File

@@ -22,7 +22,6 @@ load('rotating_generic_plants.mat', 'Gs', 'Wzs');
%% Bode plot of the direct and coupling term for the "relative damping control" plant - Effect of rotation
figure;
freqs = logspace(-2, 1, 1000);
figure;
@@ -97,13 +96,12 @@ linkaxes([ax1,ax2],'y');
%% Root Locus for Relative Damping Control
figure;
Krdc = s*eye(2); % Relative damping controller
gains = logspace(-2, 2, 300); % Tested gains
Wz_i = [1,3,4];
figure;
hold on;
for i = 1:length(Wz_i)
plot(real(pole(Gs{Wz_i(i)}({'du', 'dv'}, {'Fu', 'Fv'})*Krdc)), imag(pole(Gs{Wz_i(i)}({'du', 'dv'}, {'Fu', 'Fv'})*Krdc)), 'x', 'color', colors(i,:), ...
@@ -147,7 +145,6 @@ Krdc.OutputName = {'Fu', 'Fv'};
G_cl_rdc = feedback(Gs{i}, Krdc, 'name');
%% Damped plant using Relative Damping Control
figure;
freqs = logspace(-3, 2, 1000);
figure;

View File

@@ -97,10 +97,9 @@ Krdc.OutputName = {'Fu', 'Fv'};
%% Comparison of active damping techniques for rotating platform - Root Locus
figure;
gains = logspace(-2, 2, 500);
figure;
hold on;
% IFF
plot(real(pole(G({'fu', 'fv'}, {'Fu', 'Fv'})*Kiff)), imag(pole(G({'fu', 'fv'}, {'Fu', 'Fv'})*Kiff)), 'x', 'color', colors(1,:), ...
@@ -155,7 +154,6 @@ G_cl_iff_kp = feedback(G_kp, Kiff_kp, 'name');
G_cl_rdc = feedback(G, Krdc, 'name');
%% Comparison of the damped plants obtained with the three active damping techniques
figure;
freqs = logspace(-3, 2, 1000);
figure;

View File

@@ -1093,7 +1093,6 @@ G_pz_norot_rdc = feedback(G_pz_norot, Krdc_pz, 'name');
G_pz_fast_rdc = feedback(G_pz_fast, Krdc_pz, 'name');
%% Comparison of the damped plants (direct and coupling terms) for the three proposed active damping techniques (IFF with HPF, IFF with $k_p$ and RDC) applied on the three nano-hexapod stiffnesses
figure;
freqs_vc = logspace(-1, 2, 1000);
freqs_md = logspace(0, 3, 1000);
freqs_pz = logspace(0, 3, 1000);

View File

@@ -332,7 +332,6 @@ xlim([freqs_pz(1), freqs_pz(end)]);
%% Coupling ratio for the proposed active damping techniques evaluated for the three nano-hexapod stiffnesses
figure;
freqs_vc = logspace(-1, 2, 1000);
freqs_md = logspace(0, 3, 1000);
freqs_pz = logspace(0, 3, 1000);