フィルターのクリア

How to reassemble tessellated matrix?

1 回表示 (過去 30 日間)
Christopher
Christopher 2014 年 10 月 2 日
回答済み: Sean de Wolski 2014 年 10 月 2 日
I am able to "tessellate" a matrix into 4 smaller matrices by deleting rows and columns as follows:
r= rand(size(P));
r1 = r(1:2:end,1:2:end);
r2 = r(1:2:end,2:2:end);
r3 = r(2:2:end,1:2:end);
r4 = r(2:2:end,2:2:end);
But how do I reassemble the matrix to become r again?

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 10 月 2 日
r(1:2:end,1:2:end) = r1;
r(1:2:end,2:2:end) = r2;
...

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by