Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).

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.

댓글 수: 1

And how can we do that? Read your post. All I can say is that you're giving non-integer values somewhere , but then you already know that because it told you.

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

답변 (1개)

AJ von Alt
AJ von Alt 2014년 1월 31일
편집: AJ von Alt 2014년 1월 31일
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.

태그

질문:

2014년 1월 31일

편집:

2014년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by