Introducing Gaussian errors to data (Matlab)

AI Thread Summary
To introduce Gaussian errors to velocity measurements in MATLAB, the user needs to generate random Gaussian noise with a mean of zero and a standard deviation of 0.2. The attempt to use the imnoise command was inappropriate, as it is designed for image data and resulted in values not aligning with the original velocity data. Instead, the user should utilize the randn function to create Gaussian noise and then add it to the velocity measurements. This approach ensures that the added noise maintains the desired statistical properties. Proper implementation will yield velocity values that reflect the intended Gaussian errors.
seal22
Messages
1
Reaction score
0

Homework Statement



I need to introduce Gaussian errors to a set of velocity measurements. The errors should have mean zero and standard deviation .2.
v = [4.6 3.8 7.2 9.7 6.4];

The Attempt at a Solution



I tried to use Matlab's imnoise command (J=imnoise(v,'gaussian',0,.04), but based on the answers I got, I think that this was not the appropriate approach to this problem (the answers are all between 0 and 1, not close to the original velocity data).
 
Physics news on Phys.org
>> help random
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top