need help with matlab "freqz" to plot fitler response

Status
Not open for further replies.

nhkch

Junior Member level 2
Joined
Jan 21, 2013
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,411
i have a transfer function H(z)=(1/m^2)((1-z^-m)/(1-z^-1))^2

In order to use the the command "freqz" i need to convert this transfer function to standard delay form..but i don't know how to convert due to the z^-m...
My m is 32...please help...thanks in advance.
 

z=tf('z',1);
m=32;
Hz=(1/m^2)((1-z^-m)/(1-z^-1))^2;
Hz_imp=impulse(Hz);
freqz(Hz_imp)
 
Reactions: nhkch

    nhkch

    Points: 2
    Helpful Answer Positive Rating
Thanks.. It works..
If i want to validate my system to get the same frequecy response. How should i do it?
Apply a signal and run transient...then how to plot the frequency response with the output data with matlab?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…