Borrar filtros
Borrar filtros

How to change default path on startup for Mac?

12 visualizaciones (últimos 30 días)
Cary
Cary el 17 de Jun. de 2014
Respondida: Bill Whiten el 18 de Jun. de 2014
I have the newest version. I have played around with 'userpath' but no matter what I do, every time I open MATLAB it defaults to the old directory. How can I change this? Many thanks.

Respuestas (3)

Geoff Hayes
Geoff Hayes el 17 de Jun. de 2014
There is a startup.m file that you can update to change to another directory (I've done the same on my Mac) on start up. In the Command Window type
open startup.m
and the file will be opened in the editor (file located on my computer at /Applications/MATLAB_R2014a.app/toolbox/local). Just add a line similar to the following
cd /Users/geoff/Development/matlab
Save and restart MATLAB and see what happens.

Cary
Cary el 17 de Jun. de 2014
I tried this, I had to create a startup.m file because I had none to begin with. But the directory on startup hasn't changed.
  6 comentarios
Cary
Cary el 17 de Jun. de 2014
Got it working finally, thanks very much for your help. Now I can focus!
Geoff Hayes
Geoff Hayes el 18 de Jun. de 2014
Awesome!

Iniciar sesión para comentar.


Bill Whiten
Bill Whiten el 18 de Jun. de 2014
Allows you to select folder on startup (and other times) also reopens files in editor and restores path.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by