Generating 0 and 1 from Poisson Distribution
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to create N vectors of dimension (1,M) that comprise only 0 and 1, picked from some Poisson distribution with mean lambda. I then want to correlate the 1's between the vectors with some correlation coefficeint ? Any suggestions how I can do this ? Thanks in advance
댓글 수: 0
채택된 답변
Samatha Aleti
2020년 3월 24일
You may generate 0,1 from Poisson Distribution using “poissrnd” function as follows:
M = 10;
poissrnd(0.25,1,M)
Refer the following link for documentation of “poissrnd” :
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!