How to change the data from MxN to MxNXT????.
1 view (last 30 days)
Show older comments
Where M= Channel, N=Time , T=Trial. for example I have 67 channel, 25000 in 10 trial. how to change the data from 67x25000 double to 67x250x10 double. I need your help
0 Comments
Answers (1)
Adam
on 17 Nov 2016
Edited: Adam
on 17 Nov 2016
a = rand( 67, 25000 );
b = reshape( a, [67 2500 10] );
That is assuming you made a typo and meant the 2nd dimension to be 2500 not 250. Alternatively 250 and 100 would work just as well. You cannot reshape data into an array of a different number of elements though.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!