Saving .txt file in .mat file
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Let's say I have a text file Notes.txt that describes the data set located in Data.mat. Is there a way to save Notes.txt inside Data.mat?
0 comentarios
Respuestas (1)
dpb
el 30 de En. de 2017
Sure, you can store multiple variables in a single .mat file; just read the .txt file into a cellstr array variable and write both variables to a .mat file. See the
doc save % for examples, details on how, precisely.
0 comentarios
Ver también
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!