Matlab default directory

Can anyone tell me how to change the directory that Matlab defaults to when it is
launched? I would like to set it to be something other than Matlab's "work" directory, but
for the life of me I can't find how to do this.

Thanks in advance,

Paul Thiem
UC Santa Cruz

Hi,

 

If you’re running Matlab in Windows, chances are you’re using the shortcut file, placed it c:\Matlab\ or wherever your matlab is.

Enter the shortcut’s properties and change the start directory.

 

Enjoy –

Mark

 

-----Original Message-----
From: mogwaisc [mailto:mogwaisc@...]
Sent:
ג 01 יוני 2004 21:13
To: psychtoolbox@yahoogroups.com
Subject: [psychtoolbox] Matlab default directory

 

Can anyone tell me how to change the directory that Matlab defaults to when it is
launched?  I would like to set it to be something other than Matlab's "work" directory, but
for the life of me I can't find how to do this.

Thanks in advance,

Paul Thiem
UC Santa Cruz



http://psychtoolbox.org
POST a message to: psychtoolbox@yahoogroups.com
UNSUBSCRIBE by sending a blank message to:
psychtoolbox-unsubscribe@yahoogroups.com




create a .startup in your home directory (which should be in your matlab
path).

In the .startup, put a line
cd path

where path is something like

harddrive:Users:mydirectory:mysubdirectory

for os 9 or

harddrive/mydirectory/mysubdirectory

for os x.

cheers,
maria

mogwaisc wrote:
> Can anyone tell me how to change the directory that Matlab defaults to when it is
> launched? I would like to set it to be something other than Matlab's "work" directory, but
> for the life of me I can't find how to do this.
>
> Thanks in advance,
>
> Paul Thiem
> UC Santa Cruz
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70
> http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/BEfwlB/TM
> --------------------------------------------------------------------~-> http://psychtoolbox.org
> POST a message to: psychtoolbox@yahoogroups.com
> UNSUBSCRIBE by sending a blank message to:
> psychtoolbox-unsubscribe@yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
Paul,

during startup, matlab first executes the commands in matlabrc.m,
followed by startup.m (if it exists on matlab's search path). One way
to accomplish your goal would be to create a file startup.m that
contains a cd command to change into the desired working directory.

hth, Jochen

Am 01.06.2004 um 21:12 schrieb mogwaisc:

> Can anyone tell me how to change the directory that Matlab defaults to
> when it is
> launched? I would like to set it to be something other than Matlab's
> "work" directory, but
> for the life of me I can't find how to do this.
>
> Thanks in advance,
>
> Paul Thiem
> UC Santa Cruz
>
>
>
>
> http://psychtoolbox.org
> POST a message to: psychtoolbox@yahoogroups.com
> UNSUBSCRIBE by sending a blank message to:
> psychtoolbox-unsubscribe@yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>