Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to generate 5 random matrix and in each of them i want to replace rows and columns ?

1 回表示 (過去 30 日間)
how to generate a 5 random matrix and in each of them i want to do this if i have (n,m) like A
A = [ 1 0 1 1
0 0 0 0
0 0 1 0
0 0 1 0 ]
i want a function to find
  • the row that have ones > m/2 and between the group of ones just one zero
  • the column that have ones > n/2 and between the group of ones just one zero
in this example the first row and third column
after that i want to generate a 5 random matrix and each of them must the first row and third column is equal to A like that
s = [ 1 0 1 1
1 1 0 0
1 0 1 0
1 1 1 0 ]
s = [ 1 0 1 1
1 1 0 1
1 1 1 0
1 0 1 1 ]
  • Note the Matrix A will be large may be (50 x 50 )
  2 件のコメント
John D'Errico
John D'Errico 2016 年 4 月 25 日
You asked this same question last week. Please stop asking the same question over and over again.
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016 年 4 月 25 日
I'm sorry but its a graduate project and i work on it

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by