clc;
clear all;
n=-10:10;
impulse=(n==0);
subplot(3,2,1);
stem(n,impulse);
title('impulse siganl');
xlabel('n');ylabel('dell[n]');
unitstep=(n>=10);
subplot(3,2,2);
stem(n,unitstep);
title('unitstep signal');
xlabel('n');ylabel('u[n]');
ramp=n.*(n>=0);
subplot(3,2,3);
stem(n,ramp);
title('ramp signal');
xlabel('n');ylabel('r[n]');
a=0.8
exp_signal=(a.^n).*(n>=0);
subplot(3,2,4);
stem(n,exp_signal);
title('exp_signal');
xlabel('n');ylabel('a^n u[n]');
omega=pi/4;
sinusodial=sin(omega*n);
subplot(3,2,5);
stem(n,sinusodial);
title('sinusodila sianal');
xlabel('n');ylabel('sin(omegan)');

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: