Adding noise to my data set
42 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Daniel Pollard
2020-12-14
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 个评论
Image Analyst
2020-12-14
And attach your "1 hour consumption signal" in a .mat file or a text file if you need more help.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!