The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: changing the default startup folder for MATLAB on Mac
Replies: 6   Last Post: Jul 12, 2013 6:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: changing the default startup folder for MATLAB on Mac
Posted: Jul 3, 2013 3:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

<> wrote in message
> so the outa-box default is /Users/a_specific_user/Documents/MATLAB
> i remember when installing it asked me about this and i said okay about
> the default believing that i could easily change it later.

I don't think the Installer asks you about the startup directory. I know it
asks you where to install MATLAB, and that indeed is not easy to change
after-the-fact (without reinstalling.) On certain platforms it also asks you
if you want to create symbolic links and where it should create them if you

I just looked through the Installation documentation to confirm that. None
of the steps shown discuss the startup folder.

> this page is no help whatsoever:

What happened when you tried using the USERPATH function? Did MATLAB not
start in that directory when you restarted it? If it did not, and if the
directory exists, and if you have the necessary permissions to be in that
directory, that sounds like a bug.

> nor is this page:

While there is no startup option like -startupFolder (which is what I'm
guessing you were hoping to find on that page) you can alias "matlab" or
"startmatlab" or something similar to:

/pathToMATLABBinary/matlab -r "cd newDesiredStartupDirectory"

That will run the CD command as the first instruction (after matlabrc and
startup.m) when MATLAB starts.

> nor is this page:
> nor is this page helpful:
> why cannot MATLAB just have this as part of the Preferences function?

That seems like a reasonable enhancement request. I'll add it to the
enhancement database.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.