workspace variable path

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

 采纳的回答

Arnaud Miege
Arnaud Miege 2011-4-20

0 个投票

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

5 个评论

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.
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
Well, merci beaucoup. I'll comment later in the week here if I keep having troubles.

请先登录,再进行评论。

更多回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by