You are on page 1of 1

%PRACTICE QUESTION

clear all;
clc;
x1=[zeros(1,30) ones(1,31)];
x2=[zeros(1,40) ones(1,21)];
n=[-30:30];
y=x1-x2;zzzzzzzzzzzzzzzzzzzzzzz
stem(n,y);

You might also like