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 descargas
Actualizado 22 ene 2016

Ver licencia

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

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2015b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Operating on Diagonal Matrices en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0