convert matrix into 8*8
    4 views (last 30 days)
  
       Show older comments
    
    Jitesh Bhanushali
 on 31 Mar 2014
  
    
    
    
    
    Edited: Dishant Arora
      
 on 31 Mar 2014
            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
0 Comments
Accepted Answer
  Dishant Arora
      
 on 31 Mar 2014
        
      Edited: Dishant Arora
      
 on 31 Mar 2014
  
      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 Comments
More Answers (0)
See Also
Categories
				Find more on Creating and Concatenating Matrices in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
