Divide a 3D matrix into smaller 3D matrixes
    3 views (last 30 days)
  
       Show older comments
    
    konstantina vatavali
 on 14 Aug 2020
  
    
    
    
    
    Commented: konstantina vatavali
 on 14 Aug 2020
            Hello,
    I have a 3D matrix e.g. 100x200x400.
    How can I divide it into 100 submatrices which dimensions are 100x200x4?
Thank you!
Accepted Answer
  Walter Roberson
      
      
 on 14 Aug 2020
        
      Edited: Walter Roberson
      
      
 on 14 Aug 2020
  
      YourCell = mat2cell(size(YourArray,1), size(YourArray,2), 4*ones(size(YourArray,3)/4));
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!

