x_b=[zeros(1,5) ones(1,6)]                        %%adding zeros and ones%%
figure
u=stem(n,x_b,'filled');
xlabel('n');
ylabel('Amplitude');
title('u[n]');

Categories:

Leave a Reply