Edit preferences: Working directory

  • Follow


Hi all.

I'm using matlab on my employer's network. The network implements
company policies with disk mappings, e.g. personal documents on
disk K:, department-wide stuff at disk M: - those kinds of things.

This morning the disk matlab was configured to work with when
I first installed it, was mapped to a different drive (from Q: to P:).
And all of a sudden matlab starts complaining about not finding
local directories, missing start-up files, etc. Not fun.

I have searched the preferences menu (R2010a) hoping to find
settings with no luck, I re-installed matlab, hoping to be able to
select these settings, but to no avail.

So: Where are these setting stored? How can I edit them?

Rune
0
Reply allnor (8474) 9/16/2010 9:38:23 AM

Rune Allnor <allnor@tele.ntnu.no> wrote in message <2c1d9fdb-7cd7-4809-a57d-e9cad305fa44@h25g2000vba.googlegroups.com>...
> Hi all.
> 
> I'm using matlab on my employer's network. The network implements
> company policies with disk mappings, e.g. personal documents on
> disk K:, department-wide stuff at disk M: - those kinds of things.
> 
> This morning the disk matlab was configured to work with when
> I first installed it, was mapped to a different drive (from Q: to P:).
> And all of a sudden matlab starts complaining about not finding
> local directories, missing start-up files, etc. Not fun.
> 
> I have searched the preferences menu (R2010a) hoping to find
> settings with no luck, I re-installed matlab, hoping to be able to
> select these settings, but to no avail.
> 
> So: Where are these setting stored? How can I edit them?
> 
> Rune

Hi Rune, I'm assuming that these drives are all mapped correctly when you start Windows. It's sounds like you have a path problem. 

Look in the set path dialog by going

file -> set path

or entering

>>pathtool

and making sure the directors with subfolders you need are added. Changes will only be valid for the current session unless you save those. Basically you would be modifying the pathdef.m file. If you enter

>>which pathdef

You'll see where that file lives. If you don't have write permission to that directory, you can always create your own startup.m file and put it somewhere in MATLAB's path. That file should get executed when MATLAB starts. In the startup.m file you can add all the "extra" directories you need with addpath  commands.

>>doc addpath

Wayne
0
Reply Wayne 9/16/2010 10:45:09 AM


On Sep 16, 12:45=A0pm, "Wayne King" <wmkin...@gmail.com> wrote:
> Rune Allnor <all...@tele.ntnu.no> wrote in message <2c1d9fdb-7cd7-4809-a5=
7d-e9cad305f...@h25g2000vba.googlegroups.com>...
> > Hi all.
>
> > I'm using matlab on my employer's network. The network implements
> > company policies with disk mappings, e.g. personal documents on
> > disk K:, department-wide stuff at disk M: - those kinds of things.
>
> > This morning the disk matlab was configured to work with when
> > I first installed it, was mapped to a different drive (from Q: to P:).
> > And all of a sudden matlab starts complaining about not finding
> > local directories, missing start-up files, etc. Not fun.
>
> > I have searched the preferences menu (R2010a) hoping to find
> > settings with no luck, I re-installed matlab, hoping to be able to
> > select these settings, but to no avail.
>
> > So: Where are these setting stored? How can I edit them?
>
> > Rune
>
> Hi Rune, I'm assuming that these drives are all mapped correctly when you=
 start Windows. It's sounds like you have a path problem.
>
> Look in the set path dialog by going
>
> file -> set path
>
> or entering
>
> >>pathtool
>
> and making sure the directors with subfolders you need are added. Changes=
 will only be valid for the current session unless you save those. Basicall=
y you would be modifying the pathdef.m file. If you enter
>
> >>which pathdef
>
> You'll see where that file lives. If you don't have write permission to t=
hat directory, you can always create your own startup.m file and put it som=
ewhere in MATLAB's path. That file should get executed when MATLAB starts. =
In the startup.m file you can add all the "extra" directories you need with=
 addpath =A0commands.
>
> >>doc addpath
>
> Wayne- Hide quoted text -
>
> - Show quoted text -

That's not it. I have directed matlab to the presently correct
location through the properties of the desktop shortcut.

Upon startup, matlab *still* complains that

Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
Warning: Userpath must be an absolute path and must exist on disk.

where q:\ is the drive the disk where my personal working directories
reside, originally was mapped to.

Rune
0
Reply Rune 9/16/2010 10:58:53 AM

Rune Allnor <allnor@tele.ntnu.no> wrote in message <53ee16fc-b80d-479d-8201-149fe7ca830f@c32g2000vbq.googlegroups.com>...
> On Sep 16, 12:45 pm, "Wayne King" <wmkin...@gmail.com> wrote:
> > Rune Allnor <all...@tele.ntnu.no> wrote in message <2c1d9fdb-7cd7-4809-a57d-e9cad305f...@h25g2000vba.googlegroups.com>...
> > > Hi all.
> >
> > > I'm using matlab on my employer's network. The network implements
> > > company policies with disk mappings, e.g. personal documents on
> > > disk K:, department-wide stuff at disk M: - those kinds of things.
> >
> > > This morning the disk matlab was configured to work with when
> > > I first installed it, was mapped to a different drive (from Q: to P:).
> > > And all of a sudden matlab starts complaining about not finding
> > > local directories, missing start-up files, etc. Not fun.
> >
> > > I have searched the preferences menu (R2010a) hoping to find
> > > settings with no luck, I re-installed matlab, hoping to be able to
> > > select these settings, but to no avail.
> >
> > > So: Where are these setting stored? How can I edit them?
> >
> > > Rune
> >
> > Hi Rune, I'm assuming that these drives are all mapped correctly when you start Windows. It's sounds like you have a path problem.
> >
> > Look in the set path dialog by going
> >
> > file -> set path
> >
> > or entering
> >
> > >>pathtool
> >
> > and making sure the directors with subfolders you need are added. Changes will only be valid for the current session unless you save those. Basically you would be modifying the pathdef.m file. If you enter
> >
> > >>which pathdef
> >
> > You'll see where that file lives. If you don't have write permission to that directory, you can always create your own startup.m file and put it somewhere in MATLAB's path. That file should get executed when MATLAB starts. In the startup.m file you can add all the "extra" directories you need with addpath  commands.
> >
> > >>doc addpath
> >
> > Wayne- Hide quoted text -
> >
> > - Show quoted text -
> 
> That's not it. I have directed matlab to the presently correct
> location through the properties of the desktop shortcut.
> 
> Upon startup, matlab *still* complains that
> 
> Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
> Warning: Userpath must be an absolute path and must exist on disk.
> 
> where q:\ is the drive the disk where my personal working directories
> reside, originally was mapped to.
> 
> Rune

Hi Rune, if you enter 

>>userpath

what is returned?

Wayne
0
Reply Wayne 9/16/2010 11:26:04 AM

On Sep 16, 1:26=A0pm, "Wayne King" <wmkin...@gmail.com> wrote:
> RuneAllnor <all...@tele.ntnu.no> wrote in message <53ee16fc-b80d-479d-820=
1-149fe7ca8...@c32g2000vbq.googlegroups.com>...
> > On Sep 16, 12:45=A0pm, "Wayne King" <wmkin...@gmail.com> wrote:
> > >RuneAllnor <all...@tele.ntnu.no> wrote in message <2c1d9fdb-7cd7-4809-=
a57d-e9cad305f...@h25g2000vba.googlegroups.com>...
> > > > Hi all.
>
> > > > I'm using matlab on my employer's network. The network implements
> > > > company policies with disk mappings, e.g. personal documents on
> > > > disk K:, department-wide stuff at disk M: - those kinds of things.
>
> > > > This morning the disk matlab was configured to work with when
> > > > I first installed it, was mapped to a different drive (from Q: to P=
:).
> > > > And all of a sudden matlab starts complaining about not finding
> > > > local directories, missing start-up files, etc. Not fun.
>
> > > > I have searched the preferences menu (R2010a) hoping to find
> > > > settings with no luck, I re-installed matlab, hoping to be able to
> > > > select these settings, but to no avail.
>
> > > > So: Where are these setting stored? How can I edit them?
>
> > > >Rune
>
> > > HiRune, I'm assuming that these drives are all mapped correctly when =
you start Windows. It's sounds like you have a path problem.
>
> > > Look in the set path dialog by going
>
> > > file -> set path
>
> > > or entering
>
> > > >>pathtool
>
> > > and making sure the directors with subfolders you need are added. Cha=
nges will only be valid for the current session unless you save those. Basi=
cally you would be modifying the pathdef.m file. If you enter
>
> > > >>which pathdef
>
> > > You'll see where that file lives. If you don't have write permission =
to that directory, you can always create your own startup.m file and put it=
 somewhere in MATLAB's path. That file should get executed when MATLAB star=
ts. In the startup.m file you can add all the "extra" directories you need =
with addpath =A0commands.
>
> > > >>doc addpath
>
> > > Wayne- Hide quoted text -
>
> > > - Show quoted text -
>
> > That's not it. I have directed matlab to the presently correct
> > location through the properties of the desktop shortcut.
>
> > Upon startup, matlab *still* complains that
>
> > Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
> > Warning: Userpath must be an absolute path and must exist on disk.
>
> > where q:\ is the drive the disk where my personal working directories
> > reside, originally was mapped to.
>
> >Rune
>
> HiRune, if you enter
>
> >>userpath
>
> what is returned?
>
> Wayne

>> userpath
Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
Warning: Userpath must be an absolute path and must exist on disk.
> In userpath at 82

ans =3D

     ''

That the userpath is empty is consistent with the docs,
which say that the user path will be empty if the path
is set by other means.

Rune
0
Reply Rune 9/17/2010 3:00:56 AM

Rune Allnor <allnor@tele.ntnu.no> wrote in message <f6220015-0623-4165-8c00-a9b3c540273d@k13g2000vbq.googlegroups.com>...
> On Sep 16, 1:26 pm, "Wayne King" <wmkin...@gmail.com> wrote:
> > RuneAllnor <all...@tele.ntnu.no> wrote in message <53ee16fc-b80d-479d-8201-149fe7ca8...@c32g2000vbq.googlegroups.com>...
> > > On Sep 16, 12:45 pm, "Wayne King" <wmkin...@gmail.com> wrote:
> > > >RuneAllnor <all...@tele.ntnu.no> wrote in message <2c1d9fdb-7cd7-4809-a57d-e9cad305f...@h25g2000vba.googlegroups.com>...
> > > > > Hi all.
> >
> > > > > I'm using matlab on my employer's network. The network implements
> > > > > company policies with disk mappings, e.g. personal documents on
> > > > > disk K:, department-wide stuff at disk M: - those kinds of things.
> >
> > > > > This morning the disk matlab was configured to work with when
> > > > > I first installed it, was mapped to a different drive (from Q: to P:).
> > > > > And all of a sudden matlab starts complaining about not finding
> > > > > local directories, missing start-up files, etc. Not fun.
> >
> > > > > I have searched the preferences menu (R2010a) hoping to find
> > > > > settings with no luck, I re-installed matlab, hoping to be able to
> > > > > select these settings, but to no avail.
> >
> > > > > So: Where are these setting stored? How can I edit them?
> >
> > > > >Rune
> >
> > > > HiRune, I'm assuming that these drives are all mapped correctly when you start Windows. It's sounds like you have a path problem.
> >
> > > > Look in the set path dialog by going
> >
> > > > file -> set path
> >
> > > > or entering
> >
> > > > >>pathtool
> >
> > > > and making sure the directors with subfolders you need are added. Changes will only be valid for the current session unless you save those. Basically you would be modifying the pathdef.m file. If you enter
> >
> > > > >>which pathdef
> >
> > > > You'll see where that file lives. If you don't have write permission to that directory, you can always create your own startup.m file and put it somewhere in MATLAB's path. That file should get executed when MATLAB starts. In the startup.m file you can add all the "extra" directories you need with addpath  commands.
> >
> > > > >>doc addpath
> >
> > > > Wayne- Hide quoted text -
> >
> > > > - Show quoted text -
> >
> > > That's not it. I have directed matlab to the presently correct
> > > location through the properties of the desktop shortcut.
> >
> > > Upon startup, matlab *still* complains that
> >
> > > Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
> > > Warning: Userpath must be an absolute path and must exist on disk.
> >
> > > where q:\ is the drive the disk where my personal working directories
> > > reside, originally was mapped to.
> >
> > >Rune
> >
> > HiRune, if you enter
> >
> > >>userpath
> >
> > what is returned?
> >
> > Wayne
> 
> >> userpath
> Warning: Unable to create personal MATLAB work folder:q:\MyDocs\MATLAB
> Warning: Userpath must be an absolute path and must exist on disk.
> > In userpath at 82
> 
> ans =
> 
>      ''
> 
> That the userpath is empty is consistent with the docs,
> which say that the user path will be empty if the path
> is set by other means.
> 
> Rune

Hi Rune, This is puzzling since you say that the drives are mapped correctly. Does it work if you try to set the userpath and use a UNC path. Whatever UNC path that might be for your q: drive?

Wayne
0
Reply Wayne 9/18/2010 7:41:02 PM

5 Replies
402 Views

(page loaded in 0.094 seconds)

Similiar Articles:













7/25/2012 12:28:49 AM


Reply: