Experiment 1 Ss
Experiment 1 Ss
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');
subplot(4,2,2);
stem(x,y);
xlabel('time');
ylabel('amplitude');
y1= [zeros(1,10),ones(1,11)];
subplot(4,2,3);
plot(x,y1);
xlabel('time');
ylabel('amplitude');
subplot(4,2,4);
stem(x,y1);
xlabel('time');
ylabel('amplitude');
y2 = [zeros(1,10),x(1,11:21)];
subplot(4,2,5);
plot(x,y2);
xlabel('time');
ylabel('amplitude');
subplot(4,2,6);
stem(x,y);
xlabel('time');
ylabel('amplitude');
y3 = rand(1,21);
subplot(4,2,7);
plot(x,y3);
xlabel('time');
ylabel('amplitude');
subplot(4,2,8);
stem(x,y3);
xlabel('time');
ylabel('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