Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone please help me do this two questions? I know it has many sub parts b

ID: 2248010 • Letter: C

Question

Can someone please help me do this two questions? I know it has many sub parts but they are all linked so there is no way I can seperate them or else the question won't make sense. Please help me these questions it's very important to me. I mostly need the command in question 1 for the matlab program.

Thank you in advance.

1) 7a. Load a soundl file on Matlab command prompt by ly, Fs] audioread(music.au'); b. Play the file using existing sampling rate. Sound(y Fs) c. Increase sampling rate to twice and see the effect. d. Now, create new X array by sampling each odd number of samples. Skipping neighbor sample e. Use same sound) function and play x array with original sampling rate Fs f. Now, create new XX array by stuffing zero between each consecutive sample of original music sample array y. It will be double in size g. Use same sound function and plav XX arrav with diffe erent sampling rates.

Explanation / Answer

1) As the file music.au is not given , i have taken demo file bird.wav. Please change the file name to yours.

a,b)

close all;
clear all;
[y,fs] = audioread('bird.wav');% reads the audio file
y1=y.';
sound(y1,fs) % Plays the audio file.

c)

close all;
clear all;
[y,fs] = audioread('bird.wav');
y1=y.';
fs1=2*fs; % sampling rate is increased to twice
sound(y1,fs1)

d,e)

close all;
clear all;
[y,fs] = audioread('bird.wav');
y1=y.';
%fs1=2*fs;
X=downsample(y1,2);
sound(X,fs)

f.g)

close all;
clear all;
[y,fs] = audioread('bird.wav');
XX=upsample(y,2);
sound(XX,fs)