I'm sure this is probably really simple but I can't seem to find it. I have a z transform transfer function, given from tf, and I have an input signal. What i need is to pass the signal though the system and get the output. This is a small excerpt from my very long code that is the part I am stuck on.
if true % code %the signal N = 250; n = 0:1:N-1; x1 = 3*cos(20*pi*n/N); %the transfer function num = [0.3881 0.3881]; den = [1 -0.4452 0.2700 -0.0486]; fs = 1/250; hz = tf(num, den, fs) end
Any help or direction would be greatly appreciated.
You can use lsim function
N = 250; n = 0:1:N-1; x1 = 3*cos(20*pi*n/N); num = [0.3881 0.3881]; den = [1 -0.4452 0.2700 -0.0486]; fs = 1/250; hz = tf(num, den, fs) [y,t]=lsim(hz,x1) stem(t,y)
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.