Shafayat__

Untitled

Aug 5th, 2023
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.29 KB | None | 0 0
  1. clc;
  2. close all;
  3. clear all;
  4. syms n;
  5.  
  6. x = [1 2 3 4 5];
  7. l = length(x);
  8. trans = 0;
  9. z = sym('z');
  10. for i=0:l-1
  11.     trans=trans+x(i+1).*z^(-i);
  12. end
  13. disp('Z-transform for the right side signal:');
  14. disp(trans);
  15. f=iztrans(trans);
  16. disp('Inverse Z-transform for the right side signal:');
  17. disp(f);
Advertisement
Add Comment
Please, Sign In to add comment