Converting a 2D matrix to a 3D matrix
3 ビュー (過去 30 日間)
古いコメントを表示
I have a EEG dataset that is channels x data point(16x62352) with 30 trials in it, how to is convert the matrix into a 3D one such that is (channels x data points x trials) which is (16x62352x30)?
0 件のコメント
回答 (1 件)
Jette
2013 年 2 月 13 日
I would try it using the reshape command, i.e. something like
reshape(EEG_orig,16,62352,30)
Possibly you need to transpose your original data or give the dimensions in a different order. If this is the case you might need something like shiftdim or permute to get the dimensions in the correct order afterwards.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!