I am trying to perform a simple simulation in Matlab. I have a random signal x and a filter transfer function. What is the proper usage of the filter function?
x = rand(100,1);
syms z;
Pnum = (1-0.1*z^-1);
Pdenum = (1-0.9*z^-1);
y = filter(Pnum, Pdenum, x);
This throws the error
"Undefined function 'filter' for input arguments of type 'sym'."
I understand that it's complaining about the z variable. How should I go about solving it?