Question: I need to write a function that can create noise, and then add that noise to the sound signal in my matlab code below: %Creating

I need to write a function that can create noise, and then add that noise to the sound signal in my matlab code below:

I need to write a function that can create noise, and then

%Creating 5 seconds of pleasant sound %Sampling frequency more than twice of the frequency fs- 2000; ?= [0:1/fs:5/15-1/ ; %5 seconds of peaceful music G-sin(2*pi*392*t): A-sin(2*pi*400*t); F-sin(2*pi*370*t); %Notes B-sin(2*pi*4939*t); C = sin(2*pi*261.6*t); %Notes line!-[G,G,A,G,F,A,A,B,A,G,B,B,C,BA]; % Piece of music combing the notes sng [line1]; sound(song f); %Sound the music %Normalizing the sound matrix to make in range of 16 bit precision max valuemax(abs song)); song = song,/max. xal; %Declaring the file name to save the audio filename- 'myAudioFile.wav; %Writing the audio to file"myAudioFile.way' audiowrite(filename, song, ts); %Readin, the audio file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!