Could machine reboot cause loss of Matlab path?

I use savepath to save my MATLAB path, which contains many directories. Last night Windows automatically rebooted my computer after installing updates (I have since turned this option off). MATLAB was open at the time of the reboot. In the morning, my path was missing many directories; I had to rebuild my path. Could a system reboot delete directories from my MATLAB path?

 Accepted Answer

It shouldn't. However, if you called savepath() while running MATLAB not as an admin, the path might not save. Make sure to run MATLAB as an admin (right click: run as admin) in order to make sure your path saves.

5 Comments

K E
K E on 12 Sep 2012
Edited: K E on 12 Sep 2012
Do you mean that savepath only works reliably if I run Matlab as an administrator? Is this true as well if I save my path with pathtool? I was surprised to learn that even though I am logged onto Windows 7 as an administrator, in the default I am not running Matlab as an administrator.
So to avoid unpleasant surprises, I should always choose to manually start Matlab as an administrator. Which means I can no longer start Matlab from a shortcut. That is useful to know.
No. When you want to make permanent path changes you should. Temporary path changes etc. should be fine.
For those with similar issues: here is how you can always run Matlab as an administrator.

Sign in to comment.

More Answers (0)

Categories

Find more on Share and Distribute Software in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!