Transposing matrices of a Dataset
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello! I'm new of the comunity.
I imported a dataset containing the mat files where each of them represents a 3D matrix (43x512x210).
i need to transpose each of these matrices into matrices 210x512x43. The name I associated with the dataset is "imds" and the code to import it is:
digitDatasetPath = fullfile('C:\Users\User\Desktop\DB_BCI\DB');
imds = imageDatastore(digitDatasetPath, ...
'IncludeSubfolders',true,'FileExtension', '.mat','LabelSource','foldernames');
the files mat in the dataset are 120:
would anyone be able to help me? Thank you!
0 comentarios
Respuestas (1)
Bjorn Gustavsson
el 2 de Jul. de 2020
Take a look at the help and documentation of the matlab-function permute.
HTH
5 comentarios
Bjorn Gustavsson
el 2 de Jul. de 2020
Check with:
size(imds.Files{i,1})
before and after the permutation.
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!