From 81c5ed6ee44f3f9635e70cedbb8c1f40c1713154 Mon Sep 17 00:00:00 2001 From: Nolan Date: Mon, 20 Apr 2026 12:35:40 +0200 Subject: [PATCH] Ajout figures debut --- BE_Beam.m | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/BE_Beam.m b/BE_Beam.m index f04f2d6..38de810 100644 --- a/BE_Beam.m +++ b/BE_Beam.m @@ -8,6 +8,8 @@ clear; clc; close all; +SAVE = 0; + set(0, 'DefaultLineLineWidth', 1) %% Question 3 @@ -96,8 +98,9 @@ xlabel('Réel'); ylabel('Imaginaire'); hold off; -exportgraphics(gcf, './latex/Illustrations/Question4.pdf') - +if SAVE + exportgraphics(Question4, './latex/Illustrations/Question4.pdf') +end %% Question 5 t = 0:0.01:10; @@ -110,8 +113,10 @@ xlabel("Temps (s)"); ylabel("Amplitude"); legend("u(t)", "y(t)"); title("Simulation en boucle ouverte") ; -exportgraphics(Question5, './latex/Illustrations/Question5.pdf') +if SAVE + exportgraphics(Question5, './latex/Illustrations/Question5.pdf') +end %% Question 7 @@ -142,8 +147,10 @@ xlabel("Temps (s)"); ylabel("Amplitude"); legend("$u(t)$", "$y(t)$", "$w_c(L,t)$", "$w(L,t)$", 'Interpreter', 'latex'); title("Simulation du retour de sortie avec pré-gain") ; -exportgraphics(Question8, './latex/Illustrations/Question8.pdf') +if SAVE + exportgraphics(Question8, './latex/Illustrations/Question8.pdf') +end %% Question 9 @@ -164,6 +171,7 @@ plot(eig_zoh1,'x'); hold on; plot(eig_zoh3,'x'); hold off; + %% sys_CL_Ts = c2d(sys_CL, 10, 'zoh'); figure