Random Generation of Binary Orthogonal Matrix of Size n * n with Matlab
Show older comments
Dear all...
How can I generate random binary orthogonal matrix of size n * n with matlab?
Regards,
Accepted Answer
More Answers (1)
javad ebrahimi
on 24 Feb 2018
Hi Hiba Basim Alwan
this code can help you: for n=10
C = rand(10)
Y = round(C)
1 Comment
Guillaume
on 24 Feb 2018
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.
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!