How to rearrange random binary input for each iteration?
1 ビュー (過去 30 日間)
表示 古いコメント
I am having 7 randomnly generated binary input. With this input I have performed some set of mathematical calculations. Now i need to repeat the mathematical calculations with changed order of binary input and this has to be followed for each iteration until a certain condition is met.
Example:
A = [011; 101; 010; 001; 100; 110; 111]
Expected output: Input order of A has to be varied for each iteration.
0 件のコメント
回答 (1 件)
Bjorn Gustavsson
2023 年 1 月 9 日
Have a look at the nextperm tool on the file exchange. It will allow you to cycle through all permutations.
HTH
参考
カテゴリ
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!