필터 지우기
필터 지우기

Txt. file i need to transpose

조회 수: 9 (최근 30일)
Gabriel
Gabriel 2024년 1월 18일
답변: Walter Roberson 2024년 1월 18일
I have a large txt. file that contains both text and numbers. I need to transpose the columns and rows so i can open it in eeglabs.
I cant for the life of me get it to work. Ive tried importing it as different arrays.
i also used
uiimport("filename") with success but once it is imported and i open it from workspace the transpose button is grey and i cant click it.
Any help would be really appreciated.
i have also attached a copy of the file here

답변 (1개)

Walter Roberson
Walter Roberson 2024년 1월 18일
M = readmatrix('18.01.txt', 'delimeter', ';');
Mt = M.';
writematrix(Mt, '18.01.transpose.txt', 'delimeter', ';');

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by