Eee2005 - Digital Signal Processing
Eee2005 - Digital Signal Processing
GENERATION OF SIGNALS
AIM:
6. Sine signal
7. Triangular signal
8. Gaussian signal
9. Parabolic signal
REQUIRED SOFTWARE:
MATLAB PROGRAM:
a. Increasing signal
n=0:10;
a=2;
x=a.^n;
stem(n,x);
b. Decreasing signal
n=0:10;
a=0.5;
x=a.^n;
stem(n,x);
3. Sine Wave
t=0:0.1:20;
x=3*sin(t);
plot(x);
xlabel('Time');
ylabel('Amplitude');
title('Sinusoidal Signal');
4. Triangular Wave
a=2;
x1=1-abs(t)/a;
x2=0;
x=x1.*(abs(t)<=a)+ x2.*(abs(t)>a);
plot(x);
xlabel('Time');
ylabel('Amplitude');
title('Triangular Signal');
5. Gaussian Waveforms:
a=2;
x=exp(-a.*(t.^2));
plot(x);
xlabel('Time');
ylabel('Amplitude');
title('Gaussian Signal');
6. Parabolic Signal:
a=0.4;
x1=(a*(t.^2))/2;
x2=0;
x=x1.*(t>=0)+ x2.*(t<0);
plot(x);
xlabel('Time');
ylabel('Amplitude');
title('Parabolic Signal');
OUTPUT GRAPH:
INFERENCE :
6. Sine signal
Sinusoidal signal is in the form of x(t) = A cos(w0+ θ), where A is the amplitude of the signal and w0 is the frequency.
The rate at which the amplitude changes is not constant. In fact, the slope of a sinusoid varies in a sinusoidal fashion.
The period of the sinusoid is T = 1/ f = 2π /ω.
7. Triangular signal
A triangular signal is denoted by δ(t). It is defined as δ(t)= = 1 − |t| |t| < 1
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
A triangular wave or triangle wave is a non-sinusoidal waveform. It is a periodic, piecewise linear, continuous real
function. Like a square wave, the triangle wave contains only odd harmonics.
8. Gaussian signal
The graph of a Gaussian is a characteristic symmetric "bell curve" shape. The parameter a is the height of the curve's
peak, b is the position of the center of the peak, and c.
(𝑥−𝑏)2
−
f(x)=𝑎𝑒 2𝑐2
9. Parabolic signal
In parabolic signal, the instantaneous value varies proportional to the square of time from the initial value of zero at
t=0. The parabolic signal resembles a constant acceleration input to the system
𝐴𝑡 2
f(x)= 𝑡≥0
2
0 t<0
RESULT : The experiment to generate the above mentioned signals using MATLAB R2021a was performed
successfully and the output was verified. In time domain analysis, these test signals are used to assess a system's
performance and functionality. All of these have different graphs and contribute to some form of analysis of a
system. A dynamic system's behavior and character are determined by these signals. In our day to day life all
digital electronics, including computers, data transfer devices, phones and even something as small as a
pacemaker employ digital signals.