Advertisement
ForcaDz

tp 2 101

Oct 20th, 2023
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.98 KB | None | 0 0
  1. % Définition des fonctions de transfert
  2. H1 = tf([1], [1, 10]);
  3. H2 = tf([1], [1, 100]);
  4. H3 = tf([1], conv([1, 10 + 99j], [1, 10 - 99j]));
  5. H4 = tf([1], conv([1, 100 + 990j], [1, 100 - 990j]));
  6.  
  7. % Combinaisons
  8. H_comb1 = feedback(H1 * H2, 1);
  9. H_comb2 = feedback(H1 * H3, 1);
  10. H_comb3 = feedback(H1 * H4, 1);
  11. H_comb4 = feedback(H2 * H3, 1);
  12.  
  13. % Temps de simulation
  14. t = 0:0.01:10;
  15.  
  16. % Simulation des combinaisons
  17. y_comb1 = step(H_comb1, t);
  18. y_comb2 = step(H_comb2, t);
  19. y_comb3 = step(H_comb3, t);
  20. y_comb4 = step(H_comb4, t);
  21.  
  22. % Tracé des résultats
  23. figure(1);
  24. plot(t, y_comb1);
  25. title('H1(p)H2(p)');
  26. xlabel('Temps');
  27. ylabel('Amplitude');
  28.  
  29. figure(2);
  30. plot(t, y_comb2);
  31. title('H1(p)H3(p)');
  32. xlabel('Temps');
  33. ylabel('Amplitude');
  34.  
  35. figure(3);
  36. plot(t, y_comb3);
  37. title('H1(p)H4(p)');
  38. xlabel('Temps');
  39. ylabel('Amplitude');
  40.  
  41. figure(4);
  42. plot(t, y_comb4);
  43. title('H2(p)H3(p)');
  44. xlabel('Temps');
  45. ylabel('Amplitude');
  46.  
  47. sgtitle('Simulations des Combinaisons de Systèmes');
  48.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement