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 téléchargements
Mise à jour 22 jan. 2016

Afficher la licence

‘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.

Citation pour cette source

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. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2015b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0