Hi, With the script bellow I am getting the numbers in 60 rows and 300 columns. How can I make it vice versa: 60 columns and 300 rows? Thanks for i=1:size(EEG.data,3) filename=['ep' num2str(i) '_uni9.txt']; dlmwrite(filename, EEG.data(:,:,i) ,'delimiter', ' '); end

 採用された回答

Image Analyst
Image Analyst 2017 年 11 月 21 日

1 投票

Use permute:
EEG.data = permute(EEG.data, [2, 1, 3]);

1 件のコメント

Steven Stanslowski
Steven Stanslowski 2017 年 11 月 21 日
編集済み: Steven Stanslowski 2017 年 11 月 21 日
Perfect, thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by