Random Binary Matrix With Specified Probability Constrained To Have Ones On The Main Diagonal

Creates a square (0,1) random matrix with 1s on the main diagonal, and specified probability of 1s.
62 Downloads
Aktualisiert 22. Jan 2016

Lizenz anzeigen

‘RandBinMtxDiag’ creates a square (NrRows x NrRows) binary (0,1) random matrix constrained by having ones on the main diagonal, with a total probability (‘Prob’) of ones, including the ones on the main diagonal. It was created in response to a question on MATLAB Answers, so I decided to contribute it here in the event that others could use it. It was created with R2015b, but should work with most previous releases.

Zitieren als

Star Strider (2024). Random Binary Matrix With Specified Probability Constrained To Have Ones On The Main Diagonal (https://www.mathworks.com/matlabcentral/fileexchange/55044-random-binary-matrix-with-specified-probability-constrained-to-have-ones-on-the-main-diagonal), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2015b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0