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]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by