problem2 - 2)+1.922*x(n-3); end figure() plot(y); title(...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem(2): clc; clear all ; close all ; syms z ; T=0.1; num=[0 0.2]; den=[1 -exp(-1)]; t1=tf(num,den,0.1) num=[0 -0.25]; den=[1 -exp(-0.4)]; t2=tf(num,den,0.1) num=[10 -20 10]; den=[1]; t3=tf(num,den,0.1) num=[0.5 9.5]; den=[1]; t4=tf(num,den,0.1) y1=t3*(t1+t2)+t4 % 1.11e-16 z^3 + 9.56 z^2 - 9.398 z + 1.922 % ----------------------------------------- % z^2 - 1.038 z + 0.2466 for n=1:100; x(n)=1; end plot(x); title( 'step input' ); xlabel( 'time in sec' ) ylabel( 'step output' ) y(1)=9.56; y(2)=10.08528; y(3)=10.1950; for n=5:100; y(n-1)=1.038*y(n-2)-0.2466*y(n-3)+(1.11e-16)*x(n)+9.56*x(n-1)-9.398*x(n-
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2)+1.922*x(n-3); end figure() plot(y); title( 'step response of the system - traingular hold' ); xlabel( 'no of samples' ) ylabel( 'step output of the system' ) 10 20 30 40 50 60 70 80 90 100 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 step input time in sec step output 10 20 30 40 50 60 70 80 90 100 9.5 9.6 9.7 9.8 9.9 10 10.1 10.2 step response of the system - traingular hold no of samples step output of the system...
View Full Document

Page1 / 3

problem2 - 2)+1.922*x(n-3); end figure() plot(y); title(...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online