필터 지우기
필터 지우기

Adding noise to my data set

조회 수: 16 (최근 30일)
Ricardo López
Ricardo López 2020년 12월 14일
댓글: Ricardo López 2020년 12월 14일
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

채택된 답변

Daniel Pollard
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
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.
Ricardo López
Ricardo López 2020년 12월 14일
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!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by