How to change the data from MxN to MxNXT????.

1 Ansicht (letzte 30 Tage)
yabes dwi nugroho
yabes dwi nugroho am 17 Nov. 2016
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

Antworten (1)

Adam
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.

Kategorien

Mehr zu Signal Processing finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by