How to change the data from MxN to MxNXT????.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Adam
am 17 Nov. 2016
Bearbeitet: Adam
am 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.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!