RV College of Engineering: 1RV19ET034 Mukul Dev Choudhary 1RV19ET016 Bishal Kumar
RV College of Engineering: 1RV19ET034 Mukul Dev Choudhary 1RV19ET016 Bishal Kumar
RV College of Engineering: 1RV19ET034 Mukul Dev Choudhary 1RV19ET016 Bishal Kumar
01 TITLE:
Sampling and Quantization of an audio signal
TOOL NAME AND PROGRAMMING LANGUAGE USED:
We have used MATLAB as a Tool for writing Code.
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
02 SNIPPET OF THE DESIGN EXAMPLE:
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
03 CODE:
clc
clear all
close all
[y,Fs] = audioread('C:\Users\Mukul\Documents\Sound recordings\Recordind.m4a');
info = audioinfo('C:\Users\Mukul\Documents\Sound recordings\Recordind.m4a');
t=0:seconds (1/Fs):seconds(info.Duration);
t=t(1:end);
figure(1);
subplot(3,1,1);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('INPUT AUDIO signal');
n=12;
y_max=max(y);
y_min=min(y);
yquan=y/y_max(1);
d=(y_max-y_min)/n;
d=d(1);
q=d.*[0:n-1];
q=q-((n-1)/2)*d;
figure(1);
subplot(3,1,2);
stem(q);
ylabel('Amplitude');
title('Quantisation Levels');
for i=1:n
yquan(find((q(i)-d/2<=yquan)&(yquan<=q(i)+d/2)))=q(i).*ones(1,length(find((q(i)-d/
2<=yquan)&(yquan<=q(i)+d/2))))
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
04 SNIPPET OF THE SIMULATION RESULTS :
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
05 INPUTS APPLIED:
OUTPUT OBTAINED:
RV College of Engineering
Dept. of Electronics and Telecommunication
Course with Code: Signals and Systems-18TE45
Experiential Learning Report (Even Sem. 2020-21)
Faculty In charge: Dr. Premananda B.S.
06 CONCLUSION/INFERENCE :