how to generate samples uisng pseudo random generator
조회 수: 2 (최근 30일)
이전 댓글 표시
how to generate xor samples using pseudo random number generator
댓글 수: 2
dpb
2014년 8월 27일
doc rand % and friends for the RNGs in Matlab
what, and how, xor comes into play is totally unclear from what little was provided.
채택된 답변
Star Strider
2014년 8월 27일
I am not certain that I understand what you want to do, but I will make an attempt at answering:
nrows = 5;
s = logical(randi(2, nrows, 2)-1);
out = xor(s(:,1),s(:,2));
댓글 수: 4
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Big Data Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!