0% found this document useful (0 votes)
4 views4 pages

Experiment 1 Ss

Uploaded by

BRIJESH HANSA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Experiment 1 Ss

Uploaded by

BRIJESH HANSA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

clc;

clear all;

close all;

x = [-10:10];

y = [zeros(1,10),1,zeros(1,10)];

subplot(4,2,1);

plot(x,y);

xlabel('time');

ylabel('amplitude');

title('continuous impulse signal');

subplot(4,2,2);

stem(x,y);

xlabel('time');

ylabel('amplitude');

title('discrete impulse signal');

y1= [zeros(1,10),ones(1,11)];

subplot(4,2,3);

plot(x,y1);

xlabel('time');

ylabel('amplitude');

title('continuous step signal');

subplot(4,2,4);

stem(x,y1);

xlabel('time');
ylabel('amplitude');

title('discrete discrete signal');

y2 = [zeros(1,10),x(1,11:21)];

subplot(4,2,5);

plot(x,y2);

xlabel('time');

ylabel('amplitude');

title('continuous ramp signal');

subplot(4,2,6);

stem(x,y);

xlabel('time');

ylabel('amplitude');

title('discrete ramp signal');

y3 = rand(1,21);

subplot(4,2,7);

plot(x,y3);

xlabel('time');

ylabel('amplitude');

title('continuous random signal');

subplot(4,2,8);

stem(x,y3);
xlabel('time');

ylabel('amplitude');

title('discrete random signal');


continuous impulse signal discrete impulse signal
1 1
amplitude

amplitude
0.5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
time time
continuous step signal discrete discrete signal
1 1
amplitude

amplitude
0.5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
time time
continuous ramp signal discrete ramp signal
10 1
amplitude

amplitude
5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
time time
continuous random signal discrete random signal
1 1
amplitude

amplitude

0.5 0.5

0 0
-10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10
time time

You might also like