Retrieve commands from .mat file
Mostrar comentarios más antiguos
I saved my command window with all the commands to a .mat file. When I reopen the .mat file, I was able to load the .mat but couldn't retrieve my commands in the command window.
Is there any way to retrieve these commands?
3 comentarios
Walter Roberson
el 23 de Jul. de 2019
What commands did you use to save the commands?
.mat files are designed to contain variable data, not commands.
You can retrieve commands using the command history, or the diary function:
Walter Roberson
el 23 de Jul. de 2019
It is technically possible to retrieve the command history and store it in a variable that you then store in a file. I doubt that has been done, but it could have been done.
Respuestas (1)
Alex Mcaulley
el 23 de Jul. de 2019
Editada: Alex Mcaulley
el 23 de Jul. de 2019
0 votos
.mat files only store variables from the workspace.
To retrieve command history:
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!