Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Définition des fonctions de transfert
- H1 = tf([1], [1, 10]);
- H2 = tf([1], [1, 100]);
- H3 = tf([1], conv([1, 10 + 99j], [1, 10 - 99j]));
- H4 = tf([1], conv([1, 100 + 990j], [1, 100 - 990j]));
- % Combinaisons
- H_comb1 = feedback(H1 * H2, 1);
- H_comb2 = feedback(H1 * H3, 1);
- H_comb3 = feedback(H1 * H4, 1);
- H_comb4 = feedback(H2 * H3, 1);
- % Temps de simulation
- t = 0:0.01:10;
- % Simulation des combinaisons
- y_comb1 = step(H_comb1, t);
- y_comb2 = step(H_comb2, t);
- y_comb3 = step(H_comb3, t);
- y_comb4 = step(H_comb4, t);
- % Tracé des résultats
- figure(1);
- plot(t, y_comb1);
- title('H1(p)H2(p)');
- xlabel('Temps');
- ylabel('Amplitude');
- figure(2);
- plot(t, y_comb2);
- title('H1(p)H3(p)');
- xlabel('Temps');
- ylabel('Amplitude');
- figure(3);
- plot(t, y_comb3);
- title('H1(p)H4(p)');
- xlabel('Temps');
- ylabel('Amplitude');
- figure(4);
- plot(t, y_comb4);
- title('H2(p)H3(p)');
- xlabel('Temps');
- ylabel('Amplitude');
- sgtitle('Simulations des Combinaisons de Systèmes');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement