How to reassemble tessellated matrix?

2 views (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!