Reshape data to insert into eeglab
Show older comments
I have data 40x12x4096 i need to reshape this data into 12x4096x40 . But I have 10 .mat files of 40x12x4096 and change data into 12x4096x40 of all mat files and insert into eeglab . Can anyone help?
Answers (1)
Walter Roberson
on 3 Jun 2020
For any one 40 x 12 x 4096 array,
permute(TheArray, [2 3 1])
To run through several files, see http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Categories
Find more on Workspace Variables and MAT Files 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!