Professional Documents
Culture Documents
0.9
A m p lit u d e
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
Timeperiod
Ramp Signal
clc;
clear all;
close all;
a=input('Enter the amplitude: ');
n=0:1:10;
y=a*n;
stem(n,y);
title('Generation of discrete signal- ramp signal-18EER033-JEEVANANTH.S ');
xlabel('Timeperiod');
ylabel('Amplitude');
clc;
clear all;
close all;
a=input('Enter the amplitude: ');
f=input('Enter the frequency: ');
n=0:0.001:0.1;
y=a*sin(2*3.14*f*n);
stem(n,y);
title('Generation of discrete signal- sine signal-18EER033-JEEVANANTH.S ');
xlabel('Timeperiod');
ylabel('Amplitude');
Enter the amplitude: 10
Enter the frequency: 50
Parabolic Signal
clc;
clear all;
close all;
a=input('Enter the amplitude: ');
n=-5:1:5;
y=a*(n.^2);
stem(n,y);
title('Generation of discrete signal- parabolic signal-18EER033-JEEVANANTH.S
');
xlabel('Timeperiod');
ylabel('Amplitude');
Enter the amplitude: 1
Exponential signal: Case 1: -1<a<0
clc;
clear all;
close all;
a=input('Enter the amplitude: ');
n=-5:1:5;
y=a.^n;
stem(n,y);
title('Generation of discrete signal- exponential signal-18EER033-JEEVANANTH.S
');
xlabel('Timeperiod');
ylabel('Amplitude');
clc;
clear all;
close all;
a=input('Enter the amplitude: ');
n=-5:1:5;
y=a.^n;
stem(n,y);
title('Generation of discrete signal- exponential signal-18EER033-JEEVANANTH.S
');
xlabel('Timeperiod');
ylabel('Amplitude');
Enter the amplitude: 2
10
0
A m plitude
-10
-20
-30
-40
-5 -4 -3 -2 -1 0 1 2 3 4 5
Timeperiod