Rowan-Classes/6th-Semester-Spring-2024/DSP/Labs/Lab-04/lab4_2.m

12 lines
200 B
Matlab

syms n a b
% Signals to take the z-transform of
f_a = a^n;
f_b = (n+1)*a^n*heaviside(n)
f_c = a^n*cos(b*n)*heaviside(n)
% Take the z-transforms
F_a = ztrans(f_a)
F_b = ztrans(f_b)
F_c = ztrans(f_c)