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

 Réponse acceptée

Dishant Arora
Dishant Arora le 31 Mar 2014
Modifié(e) : Dishant Arora le 31 Mar 2014

0 votes

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)

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by