0% found this document useful (0 votes)
13 views

Signal and System_3-Mithun

Uploaded by

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

Signal and System_3-Mithun

Uploaded by

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

SIGNALS AND SYSTEMS

2023CSB015 PRITHIRAJ BISWAS


2023CSB019 MITHUN DUTTA
2023CSB017 RAMJI MUKHIYA
2023CSB028 AMAN MAURYA
MATLAB PROGRAMMING

Familiarize with programming in


MATLAB. Perform some of the
practice sets from the uploaded
study material. Caution: The version
used in the study material may be
outdated in some cases.
Implement the Proportional,
Integral and Derivative system
functions (and their combination)
using programming and
experiment with different input
signal profiles.
PROPORTIONAL FUNCTION
SIMULATION INPUT/OUTPUT
DERIVATIVE FUNCTION
SIMULATION INPUT/OUTPUT
INTEGRAL FUNCTION
SIMULATION INPUT/OUTPUT
PD FUNCTION
SIMULATION INPUT/OUTPUT
PI FUNCTION
SIMULATION INPUT/OUTPUT
PID FUNCTION
SIMULATION INPUT/OUTPUT
MODELLING WITH SIMULINK
Familiarize with Simulink of
MATLAB. Implement the
Proportional, Integral and Derivative
systems (and their combination) as
Simulink blocks and experiment with
different input signal profiles.
INTEGRAL SYSTEM
SIMULATION INPUT/OUTPUT
DERIVATIVE SYSTEM
SIMULATION INPUT/OUTPUT
PROPORTIONAL GAIN CIRCUIT
SIMULATION INPUT/OUTPUT
COMBINATION 1
(PROPORTIONAL + DIFFERENTIATOR)
SIMULATION INPUT/OUTPUT
COMBINATION 2
(PROPORTIONAL + INTEGRATOR)
SIMULATION INPUT/OUTPUT
PID CIRCUIT
SIMULATION INPUT/OUTPUT
Objectives of presentation

 Create an audio file of short duration. Read this audio file into an array for
further processing.
 Processing will include -
 a) Amplifying
 b) Increase pace (fast)
 c) Decrease pace (slow)
 d) Add Noise
Reading the audio file

 Here we have created a N[1].wav file , which is to be red into an array of


values using the audioread() command provided in MATLAB.
 [y, Fs] = audioread(‘N[1].wav');
Hearing the audio file

Similar to the reading the functionality


provided by MATLAB, it also provides the
sound() function that takes a matrix of signal
data and converts it into audio at a given
sampling rate sound(y, Fs);
pLOtting the audio file

 Using the plot command in MATLAB, we can


plot our audio data(y-axis), noting that the x-
axis should have same number of discrete
points as that of the number of rows in the
sampled audio data for no error during
execution of the command.

 plot(t, y);
Amplifying the sound

To amplify the sound we just need to multiply the


audio sampled data(d) with some factor(>1) and
write it into another .wav file using audiowrite()
command [y, Fs] = audioread(‘Audio.mp4’);
[yh,yl] = bounds(y); audiowrite(“Amplify.mp4”,y*5,
Fs);
INCREASING AUDIO PACE

 Increasing the Audio Pace We change


the audio pace by using the
stretchAudio() command given by
MATLAB. We set the speed =1.5 for our
case. [y, Fs] = audioread(‘N[1].wav');
speed = 1.5; newFs = speed * Fs
Slowing the audio pace

 Slowing the Audio Pace We again use the same


stretchAudio() function to produce the slowed
sequence using a delay of 0.5. [y, Fs] =
audioread(‘N[1].wav'); speed = 0.5; newFs =
speed * Fs
Adding noise to the audio file

 Wecan easily add noise to the audio


data sequence by adding it to a random
number in the range of its size.
y3=y+randn(size(y)); sound(y3,Fs);

You might also like