workspace variable path

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

 Risposta accettata

Arnaud Miege
Arnaud Miege il 20 Apr 2011

0 voti

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

5 Commenti

Maria
Maria il 20 Apr 2011
Once you save them...what's the default path!?
Arnaud Miege
Arnaud Miege il 20 Apr 2011
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 il 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.
Arnaud Miege
Arnaud Miege il 20 Apr 2011
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 il 20 Apr 2011
Well, merci beaucoup. I'll comment later in the week here if I keep having troubles.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by