convert matrix into 8*8

1 次查看(过去 30 天)
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