workspace variable path

Where are the workspace variables stored? My working folder has only shortcuts.

 Accepted Answer

Arnaud Miege
Arnaud Miege on 20 Apr 2011

0 votes

Nowhere, they just reside in memory until you save them with the save command.
HTH,
Arnaud

5 Comments

Maria
Maria on 20 Apr 2011
Once you save them...what's the default path!?
I don't understand your question: when you save data to a MAT file, the path to that MAT file is the normal Windows path to a file. For example if I save data to c:\Work\MyData.mat, then the path to the MAT file is simply c:\Work\MyData.mat. There's no notion of path for variables, only for files. You can load the data from a MAT file with the load function. The data then resides in your workspace (in memory) until you delete it.
Maria
Maria on 20 Apr 2011
Let me put it in another way. I am working in my computer on an older version of matlab. I want to take my workspace variables, put them in a pendrive, for example, and use them in another computer that has a newer version of the software (and runs faster). When I try to find the mat files in my drive, these are only shortcuts.
That's probably because Windows thinks MAT files are Microsoft Access shortcuts. Have a look at these:
http://www.mathworks.com/help/techdoc/matlab_env/f8-8880.html#bq4h655-1
http://www.mathworks.com/support/solutions/en/data/1-VW0R7/?solution=1-VW0R7
Maria
Maria on 20 Apr 2011
Well, merci beaucoup. I'll comment later in the week here if I keep having troubles.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!