Advertisement
aidanozo

Untitled

Dec 9th, 2024
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.56 KB | None | 0 0
  1. A = [1 -0.4 -0.32];
  2. B = [0 0.5 0.03];  
  3.  
  4. N = 100;
  5. nr = 100;
  6.  
  7. if all(abs(roots(A))<1) && all(abs(roots(B))<1)
  8.     mcmmp_arx2(A, B, N, nr);
  9. else
  10.     disp("Polinom instabil");
  11. end
  12.  
  13. if all(abs(roots(A))<1) && all(abs(roots(B))<1)
  14.     mcmmp_oe2(A, B, N, nr);
  15. else
  16.     disp("Polinom instabil");
  17. end
  18.  
  19. if all(abs(roots(A)) < 1) && all(abs(roots(B)) < 1)
  20.     mcmmp_arx_Pb3(A, B, N, nr);
  21. else
  22.     disp("Polinom instabil");
  23. end
  24.  
  25. if all(abs(roots(A)) < 1) && all(abs(roots(B)) < 1)
  26.     mcmmp_oe_Pb3(A, B, N, nr);
  27. else
  28.     disp("Polinom instabil");
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement