%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

Download as docx, pdf, or txt
Download as docx, pdf, or txt
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