Read text file and store in .mat file
Mostrar comentarios más antiguos
I have a text file with these values:
d030bcb1
6142d6ad
619b8312
618803cb
61866781
619c04c5
61c420b2
61ba1feb
61bec5b3
6221fe09
I want to read this text file and store in a .mat file.
thanks in advance
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 7 de Sept. de 2013
data = regexp( fileread('file1.txt'), '\n', 'split' );
save file2 data
Categorías
Más información sobre Text Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!