필터 지우기
필터 지우기

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 CenterFile Exchange에서 Statistics 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