Shafayat__

Untitled

May 20th, 2023
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1. % Define the transfer function coefficients
  2. b = [0 1];
  3. a = [1 -1];
  4.  
  5. % Create the transfer function object
  6. H = tf(b, a, 1);
  7.  
  8. % Display the transfer function
  9. disp('Transfer Function:');
  10. disp(H);
  11.  
  12. % Obtain the poles of the transfer function
  13. poles = pole(H);
  14.  
  15. % Display the poles
  16. disp('Poles:');
  17. disp(poles);
  18.  
  19. % Plot the poles on the z-plane
  20. figure;
  21. zplane([], poles);
  22. title('Pole Locations');
Advertisement
Add Comment
Please, Sign In to add comment