Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

clc

clear all
close all
y(1)=1
u=[ones(1,50)]
for n=2:50
y(n)=4*u(n)+3*u(n-1)+0.5*y(n-1)
end
subplot(2,1,1)
stem(u)
subplot(2,1,2)
stem(y)

You might also like