How do I change the array of 200x2x100 to 100x2x200?
    5 views (last 30 days)
  
       Show older comments
    
    JIWON LEE
 on 28 Apr 2021
  
    
    
    
    
    Edited: Subhadeep Koley
    
 on 28 Apr 2021
            In Python, I use "np.transpose" code, but I don't know how to use it on Matlab..
0 Comments
Accepted Answer
  Subhadeep Koley
    
 on 28 Apr 2021
        
      Edited: Subhadeep Koley
    
 on 28 Apr 2021
  
      % Generate demo data
data = rand(200, 2, 100);
% Permute the data
newData = permute(data, [3 2 1]);
size(data)
size(newData)
0 Comments
More Answers (0)
See Also
Categories
				Find more on Call Python from MATLAB 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!
