convert matrix into 8*8

조회 수: 1 (최근 30일)
Jitesh Bhanushali
Jitesh Bhanushali 2014년 3월 31일
편집: Dishant Arora 2014년 3월 31일
sir i have 64*64 matrix and i want to convert every 4*4 block of 64*64 matrix into 8*8 matrix..how to do this

채택된 답변

Dishant Arora
Dishant Arora 2014년 3월 31일
편집: Dishant Arora 2014년 3월 31일
originalArray = ones(64);
C = mat2cell(A , 4*ones(1,16) , 4*ones(1,16))
C = cellfun(@(x) padarray(x , [2,2]) , C , 'Un' , 0)
outputArray = cell2mat(C)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by