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

バージョン 1.0.0.0 (4.76 KB) 作成者: Star Strider
Creates a square (0,1) random matrix with 1s on the main diagonal, and specified probability of 1s.
ダウンロード: 62
更新 2016/1/22

ライセンスの表示

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

引用

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. 取得済み .

MATLAB リリースの互換性
作成: R2015b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersOperating on Diagonal Matrices についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0