This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Assign userpath as Startup Folder (Macintosh or UNIX)

This example shows how to assign the userpath folder as the startup folder on a Macintosh platform. The procedure is similar for UNIX® platforms. Assume that userpath is set to the default value on a Macintosh platform where smith is the home folder.

Using a bash shell, set the MATLAB_USE_USERWORK environment variable so that userpath will be used as the startup folder.


From that shell, start MATLAB®. Next, verify the current folder in MATLAB.


Confirm that this is the same as the folder defined for userpath.


Confirm that the userpath is at the top of the search path.


Was this topic helpful?