Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).
2 views (last 30 days)
When I did that Matlab version of that the answer Warning: Size input contains non-integer values. This will error in a future release. Use FLOOR to convert to integer values.
Please give me a reason to why this is occurring and a solution if possible.
AJ von Alt on 31 Jan 2014
Edited: AJ von Alt on 31 Jan 2014
The function randn assumes a standard normal distribution of N(0,1) with mean 0 and variance 1.
If you want a different mean and variance you will have to scale and shift the output of randn as needed. There is an example of how to do that in the randn documentation page.