How the change the dimensions of multiple arrays with the cell, Matlab?

2 vues (au cours des 30 derniers jours)
MP
MP le 16 Juin 2022
Commenté : MP le 16 Juin 2022
I have a cell array:
a = 400x9 cell
Each cell in variable "a" contains 64x17 double array.
>> Now I would like to convert the size of Each cell in variable "a" with initial dimesions of 64x17 double array to 17x64 double array. Just the transpose! Is it possible to do that?
Any help is greatly appriciated. Thank you in advance!

Réponse acceptée

Stephen23
Stephen23 le 16 Juin 2022
a = cellfun(@transpose,a,'uni',0)

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by