Hello, I'd like to create the symbolic function x[n]=2^n*u[n] if n is even, and x[n] = 0 if n is odd. I created a vector which works with
n=0:20; x=2.^(n).*abs(mod(n,2)-1);
However, i'd like to perform ztrans on this signal, so i need it in a symbolic function. The mod functions does not seem to work the same way with symbolic functions. How do i create the function i need?
Best Answer