B = permute(A,dimorder)
rearranges the dimensions of an array in the order specified by the vector
dimorder. For example, permute(A,[2 1]) switches the
row and column dimensions of a matrix A. In general, the
ith dimension of the output array is the dimension
dimorder(i) from the input array.
If B is a heterogeneous cell array, dimorder
must be a constant. To learn more about heterogeneous cell arrays, see Code Generation for Cell Arrays (MATLAB Coder).
The permute function
fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Starting in R2019b, the syntax permute(A,dimorder) produces an error
when dimorder is a noninteger or complex value. Instead, specify real,
positive integer values for dimorder.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.