the best way to save .txt

11 visualizaciones (últimos 30 días)
Luca Re
Luca Re el 8 de Jun. de 2023
Respondida: Walter Roberson el 9 de Jun. de 2023
hI,
i want to load this data (the values ​​will be loaded into the app designer) and when i close matlab save the updated data
(the data is small size of 15 lines)
what is the best way to save them? if it's .mat do I have to first save them in a .txt file and then upload them?

Respuestas (2)

KALYAN ACHARJYA
KALYAN ACHARJYA el 9 de Jun. de 2023
Editada: Walter Roberson el 9 de Jun. de 2023
While I cannot definitively claim that it is the absolute best, as "best" is subjective and varies depending on individual perspectives, I can suggest following way to consider.
Write data into text file "fprintf"

Walter Roberson
Walter Roberson el 9 de Jun. de 2023
You could consider using readcell and writecell
... but sometimes the easiest way is just to fopen / fprintf / fclose

Categorías

Más información sobre Tables 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