MATLAB: How to save MAtlab output in a file that you can reopen later

outputsaving

I have some results in Matlab which are mainly cell arrays and numbers. I want to save these results(either in a .txt file or anywhere else) so that I can use them later to make a table, draw a graph, etc…
What is the best way to do that?

Best Answer

Save your workspace as a *.mat file is easiest. You can use File->Save Workspace As from the menu or using the 'save' command.
doc save
Then to retrieve the results, use File->Open or the 'load' command
doc load