Shafayat__

Untitled

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