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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by