Introducing Gaussian errors to data (Matlab)

Click For Summary
SUMMARY

The discussion centers on introducing Gaussian errors to velocity measurements in MATLAB. The user attempted to use the imnoise function with parameters that resulted in outputs not reflective of the original data. Specifically, the user sought to add Gaussian noise with a mean of zero and a standard deviation of 0.2 to the velocity vector v = [4.6 3.8 7.2 9.7 6.4]. The incorrect application of the imnoise function led to values constrained between 0 and 1, indicating a misunderstanding of the function's intended use for image data rather than numerical arrays.

PREREQUISITES
  • Understanding of Gaussian distribution and its properties
  • Familiarity with MATLAB programming environment
  • Knowledge of MATLAB functions for random number generation
  • Basic concepts of noise introduction in data analysis
NEXT STEPS
  • Learn how to use MATLAB's randn function for generating Gaussian noise
  • Research the proper application of noise addition to numerical datasets in MATLAB
  • Explore MATLAB's normrnd function for generating random numbers from a normal distribution
  • Study techniques for validating the integrity of modified datasets post-noise introduction
USEFUL FOR

Data analysts, MATLAB users, and researchers working with velocity measurements or any numerical data requiring noise simulation for testing and validation purposes.

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
 

Similar threads

Replies
5
Views
2K
Replies
28
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
Replies
2
Views
1K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 22 ·
Replies
22
Views
6K