how to reduce the matrix dimmension?

3 ビュー (過去 30 日間)
mostafa
mostafa 2014 年 10 月 26 日
コメント済み: Matt J 2014 年 10 月 26 日
Hi all
I have a EEG data which is a 4D matrix with this size
ans =
36 18 10 2560
36: Persons
18: Channels
10: Times the test repeat
2560: Data sampled by 512 Hz for 5S
Now I want just a 2D matrix with channels in rows and data in columns. how can I reduce the dimension?
  1 件のコメント
mostafa
mostafa 2014 年 10 月 26 日
I have to add this what if I want just the first person ?

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2014 年 10 月 26 日
A=permute(A,[2,1,3,4]);
A=reshape(A,18,[]);
  2 件のコメント
mostafa
mostafa 2014 年 10 月 26 日
what the first line do? because i just run the reshape command and the answer was the same.
Matt J
Matt J 2014 年 10 月 26 日
You should never have to ask what a command does. You have the "doc" and "help" commands. You also have online documentation,

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by