フィルターのクリア

if i have some matrix unknown how to generate a matrix with condition to give the same matrix?

1 回表示 (過去 30 日間)
if i have some matrix unknown how to generate a matrix with condition to give the same matrix? for example
A = [ 0 1 1 1 0 this matrix will be unknown
1 1 0 1 1
1 0 0 0 1
1 1 0 1 1
0 1 1 1 0 ]
and if i have these matrix
B = [ 0 3 represent number of group of ones in each row in the New matrix (X)
2 2
1 1
2 2
0 3]
AND C = [ 0 2 1 2 0 represent number of group of ones in each column in the New matrix (X)
3 2 1 2 3 ]
And after generate a random matrix X I need some function to compute matrix B and C and give a solution very closed to the Matrix A
  • note X NOT equal exactly for A
  2 件のコメント
Geoff Hayes
Geoff Hayes 2016 年 4 月 10 日
Firas - I'm not clear on what is known and unknown. You suggest that B and C are known but then you want to use X to create B and C. Please clarify what information you have to start with and what information (matrix) you want to end up with. What are the rules?
Geoff Hayes
Geoff Hayes 2016 年 4 月 10 日
Firas - is this a duplicate of http://www.mathworks.com/matlabcentral/answers/278135-how-can-i-combine-the-matrix-a-and-matrix-b-to-generate-the-random-matrix? Please don't post duplicate questions and delete either that question or this one.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by