Generate 251 experiment noise data (mnoise) which follow a normal distribution with mean 0 and standard deviation of 0.02. (Use command “randn”).
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Image Analyst
2014 年 1 月 31 日
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
2014 年 1 月 31 日
編集済み: AJ von Alt
2014 年 1 月 31 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!