Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

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 ]

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

rbj@audioimagination.com wrote in message <d3c4931a-1e71-4f9d-80cc-138e13ecc303@googlegroups.com>...
> 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.
> this page is no help whatsoever:
> http://www.mathworks.com/help/matlab/matlab_env/changing-the-startup-folder.html
> nor is this page:
> http://www.mathworks.com/help/matlab/matlab_env/startup-options.html

I'm not sure why this page is of no help whatsoever. It says:

On all platforms, you can also specify startup options using a MATLAB startup file?see Specifying Startup Options in the MATLAB Startup File

and that section of the page says:

Specifying Startup Options in the MATLAB Startup File

At startup, MATLAB automatically executes the file matlabrc.m and, if it exists, startup.m. The file matlabrc.m, which is in the matlabroot/toolbox/local folder, is reserved for use by MathWorks® and by the system manager on multiuser systems.

The file startup.m is for you to specify startup options. For example, you can modify the default search path, predefine variables in your workspace, or define defaults for Handle Graphics® objects. Use the following statements in a startup.m file to add the specified folder, /home/username/mytools, to the search path, and to change the current folder to mytools upon startup.

addpath /home/username/mytools
cd /home/username/mytools

Place the startup.m file in the default or current startup folder, which is where MATLAB first looks for it. For more information, see MATLAB Startup Folder.

Have you tried this option? If so, what happened?

> nor is this page:
> http://www.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html
> nor is this page helpful:
> http://www.mathworks.com/help/matlab/ref/userpath.html
> why cannot MATLAB just have this as part of the Preferences function?
> version: R2013a (
> r b-j

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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.