Borrar filtros
Borrar filtros

Txt. file i need to transpose

8 visualizaciones (últimos 30 días)
Gabriel
Gabriel el 18 de En. de 2024
Respondida: Walter Roberson el 18 de En. de 2024
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

Respuestas (1)

Walter Roberson
Walter Roberson el 18 de En. de 2024
M = readmatrix('18.01.txt', 'delimeter', ';');
Mt = M.';
writematrix(Mt, '18.01.transpose.txt', 'delimeter', ';');

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by