Adding noise to my data set
37 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ricardo López
am 14 Dez. 2020
Kommentiert: Ricardo López
am 14 Dez. 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
0 Kommentare
Akzeptierte Antwort
Daniel Pollard
am 14 Dez. 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 Kommentare
Image Analyst
am 14 Dez. 2020
And attach your "1 hour consumption signal" in a .mat file or a text file if you need more help.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!