I want to plot a frequency response ( z-transform)
How can I plot this graph?
Before asking to you, I tried to solve it by myself with the following code, but failed.
for example) H(z) = 1 + 0.5 exp(j*pi/4) * z^-1 ( H(e^jw) = 1+0.5exp(j*(pi/4-w)) )
>> t = linspace(-pi,pi);
>> x = 1+0.5*exp(j*(pi/4-t));
>> figure(1); plot(t,real(x)); grid on;