Saving notes to the startup function
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ofir Shein Lumbroso
el 7 de Nov. de 2017
Comentada: Stephen23
el 7 de Nov. de 2017
I have an editable text area in my app and I would like to save the changes in it automatically to the startup function (this way next time that I will open the app I will see the notes from the last session). Can it be done?
1 comentario
Stephen23
el 7 de Nov. de 2017
That would not follow good practice: you should keep data and code separate, especially when that data is being changed. Just save the data in a .mat file and load that: simple.
Respuesta aceptada
ES
el 7 de Nov. de 2017
Any specific reason why you want to do this in the start fcn? IMHO, the best way is to store the data in a separate file (example text, mat etc).
If you are, for some reason you need it, you will have to open the .m file using fopen and fwrite commands.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!