Borrar filtros
Borrar filtros

Upload text file and rearrange columns

3 visualizaciones (últimos 30 días)
HB
HB el 6 de Ag. de 2020
Editada: HB el 5 de Mzo. de 2021
Hi,
I am trying to input the file attached titled "input_file.txt" into MATLAB and organise the content so as to output in the format as seen in "desired_output.xlsx".

Respuestas (1)

Monisha Nalluru
Monisha Nalluru el 11 de Ag. de 2020
For loading the txt file into MATLAB, you can use importdata.
In order to process data into desired output, you can use split function which will be helpful to discard the sentence at required delimiter.
For writing the data to excel you can use writecell, writetable, writematrix depending on the way data is stored.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by