Add Gaussian noise to the signal

7 views (last 30 days)
[y,Fs] = audioread('AC-1.wav');
n = (397321,1)
a = [x,t];
plot(a)
Hello,
I am struggling to understand exactly how to solve the problem listed below. I am not sure how to add Gaussian noise to my signal. I have tried to figure this out on my own but I just cannot seem to crack this code. All of the code so far is listed above as well.
Screen Shot 2020-01-22 at 4.56.21 PM.png

Accepted Answer

Image Analyst
Image Analyst on 22 Jan 2020
Hint: use size(), the plus symbol, +, and the expression they gave you at the very end of the instructions.
y = y + std * randn(size(y));
  3 Comments
Image Analyst
Image Analyst on 23 Jan 2020
Unfortunately you
  1. Forgot to give the complete error message (all the red text)
  2. Forgot to attach your code
  3. Forgot to attach 'AC-1.wav'
thus causing a delay. Please read this link and let me help you.
Adam Carroll
Adam Carroll on 23 Jan 2020
Hey!
Sorry about that, your information actually did help me to solve the problem. Thank you for your help and I will try and make sure my question helps out the whole communities understanding next time!
Thanks again,
Adam

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!