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

1 次查看(过去 30 天)
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

回答(1 个)

Adam
Adam 2016-11-17
编辑:Adam 2016-11-17
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.

类别

Help CenterFile Exchange 中查找有关 Signal Processing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by