MATLAB: Swap double array dimensions array dimensions I have an 288x384x52 double array which I would like to transform to 288x52x384 double Best Answer permute(yourArray,[1,3,2]) Related SolutionsMATLAB: Convert 1X5 to 3X3 Probably more clever ways, butN=3; % number elements to duplicateA=a(1:N); % first rowfor i=2:numel(a)-(N-1) A=[A;a(i:i+N-1)]; % fixed typo of N-2 priorend MATLAB: Value swapping x(x(:,2)==7,:) = fliplr(x(x(:,2)==7,:)) Related QuestionWrong version of MatlabConvert a 2D matrix into 3D matrixMatlab indexing and swappingHow to append “specific columns” in an arraySwap matrix row randomly
Best Answer