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 件のコメント

Maria
Maria 2011 年 4 月 20 日
Once you save them...what's the default path!?
Arnaud Miege
Arnaud Miege 2011 年 4 月 20 日
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 2011 年 4 月 20 日
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 2011 年 4 月 20 日
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 2011 年 4 月 20 日
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