How to reassemble tessellated matrix?

1 Ansicht (letzte 30 Tage)
Christopher
Christopher am 2 Okt. 2014
Beantwortet: Sean de Wolski am 2 Okt. 2014
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?

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 2 Okt. 2014
r(1:2:end,1:2:end) = r1;
r(1:2:end,2:2:end) = r2;
...

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by