フィルターのクリア

Generating a normal distribution with specific mu and sigma, and keep a specific ration between the values in the vector

1 回表示 (過去 30 日間)
Hi all,
I'm generating a random normal distribution and i don't control the mu and sigma (i didn't wrote the script). Is there any way to change the mu and sigma and still keep the same ratio between the numbers in the vector?
Or if you prefer i can show you the script and maybe you will know how to control the sigma and mu. In that code he did some mathematically staff that i don't understood and he got sigma=1 and mu=0, if he did that can i do another mathematically staff that will give me sigma=x and mu=y?
I hope you understood me,
Best regards,
Evyatar

採用された回答

Walter Roberson
Walter Roberson 2016 年 4 月 26 日
newdata = data * x + y;

その他の回答 (1 件)

Evyatar Cohen
Evyatar Cohen 2016 年 4 月 27 日
Hi Walter,
Thanks you very much. It was very helpful.
Evyatar.

Community Treasure Hunt

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

Start Hunting!

Translated by