How to create random sequence?
6 ビュー (過去 30 日間)
古いコメントを表示
How to generate gaussain random sequence with mean = 817e-9 and standard deviation = 10e-9 and probability = 0.25 (total 50 numbers)
0 件のコメント
採用された回答
Dyuman Joshi
2024 年 4 月 22 日
avg = 817e-9;
sd = 10e-9;
N = 50;
seq = avg + sd*randn(1, N)
I am not sure about the probability, so I asked MATLAB AI Chat Playground about that and it provided the following -
seq(rand(1,N)>0.25) = 0
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!