Random Generation of Binary Orthogonal Matrix of Size n * n with Matlab
이전 댓글 표시
Dear all...
How can I generate random binary orthogonal matrix of size n * n with matlab?
Regards,
채택된 답변
추가 답변 (1개)
javad ebrahimi
2018년 2월 24일
Hi Hiba Basim Alwan
this code can help you: for n=10
C = rand(10)
Y = round(C)
댓글 수: 1
Guillaume
2018년 2월 24일
That does produce a matrix that is binary and random, but certainly not orthogonal (which is the difficult bit of the question).
randi([0 1], n)
is a simpler way of producing a binary matrix.
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!