Adding noise to my data set

20 views (last 30 days)
Ricardo López
Ricardo López on 14 Dec 2020
Commented: Ricardo López on 14 Dec 2020
Good afternoon,
I am trying to turn a 1 hour consumption signal into a 10 min consumption signal. To achive this, I am trying to add Gaussian noise to the hourly consumption signal. I would like to specify the mu and sigma values if possible around that noise.
I am trying awgn but it does not seem like i can add sigma and mu values.
Thank you for your time

Accepted Answer

Daniel Pollard
Daniel Pollard on 14 Dec 2020
randn is a uniformly distributed random variable with mean of zero and standard deviation of 1. To get what you want, use
variable = mu + sigma*randn(1,1).
  2 Comments
Image Analyst
Image Analyst on 14 Dec 2020
And attach your "1 hour consumption signal" in a .mat file or a text file if you need more help.
Ricardo López
Ricardo López on 14 Dec 2020
Actually yes, thank you. Here is my hourly data: It is a vector containing 168 rows. I would like to transform it into a 10 min time-step with added white noise, resulting in a 1008 vector (168hours into 10 minutes). So the mean being each value of my hourly vector.
Thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on Measurements and Feature Extraction 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!