0% found this document useful (0 votes)
6 views3 pages

Open Ended Lab DSP

The document outlines a MATLAB script for recording audio, processing it through FFT, and visualizing the results. It includes steps for upsampling the recorded audio signals and applying a low-pass filter to the upsampled signals. The script generates plots for both time and frequency domains of the original and processed audio signals.

Uploaded by

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

Open Ended Lab DSP

The document outlines a MATLAB script for recording audio, processing it through FFT, and visualizing the results. It includes steps for upsampling the recorded audio signals and applying a low-pass filter to the upsampled signals. The script generates plots for both time and frequency domains of the original and processed audio signals.

Uploaded by

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

%%

recObj1 = audiorecorder(5000,16,1);
recDuration = 3; % record for 3 seconds
recordblocking(recObj1,recDuration);
recObj2 = audiorecorder(5000,16,1);
recDuration2 = 3; % record for 3 seconds
recordblocking(recObj2,recDuration2);
y = getaudiodata(recObj1);
z = getaudiodata(recObj2);
subplot(3,3,1)
plot(y);
title('S1 in t')
subplot(3,3,2)
plot(z);
title('S2 in t')
y1= fft(y);
z1=fft(z);
subplot(3,3,3);
plot(abs(y1));
title('S1 in f');
subplot(3,3,4)
plot(abs(z1));
title('S2 in f');

upS1= upsample(y,3);
upS2= upsample(z,3);
subplot(3,3,1)
plot(upS1);
title('upsampled S1 in t')
subplot(3,3,2)
plot(upS2);
title('upsampled S2 in t')
y1= fft(upS1);
z1=fft(upS2);
subplot(3,3,3);
plot(abs(y1));
title('upsampled S1 in f');
subplot(3,3,4)
plot(abs(z1));
title(' upsampled S2 in f');

clc
num=fir1(10,0.1,'low');
lp1=filter(num,1,upS1);
subplot(2,1,1)
plot(lp1);
title('upsampled S1 passed thru LP')
num2=fir1(10,0.1,'low');
lp2=filter(num2,1,upS2);
subplot(2,1,2)
plot(lp2);
title('upscaled S2 passed thru LP');

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy