How to create random sequence?
조회 수: 5 (최근 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!