Effacer les filtres
Effacer les filtres

Default location in matlab

1 vue (au cours des 30 derniers jours)
Philosophaie
Philosophaie le 10 Sep 2015
In R2014b right now when I bring up MatLab the default location is: "C:\Users\User\Documents\MATLAB"
I want to change it to:
"C:\Users\User\Documents\NewFolder\MATLAB"
So my default location is more manageable to me.
I have searched Preferences maybe I missed something.

Réponses (2)

Image Analyst
Image Analyst le 10 Sep 2015
To specify that MATLAB starts up with that folder as the "Current folder", put this into your startup.m file:
cd('C:\Users\User\Documents\NewFolder\MATLAB');

Star Strider
Star Strider le 10 Sep 2015
I would do it in a slightly different order (as I have done on all my MATLAB installations). Create the folder first, then add it to the path and save it:
mkdir('C:\Users\User\Documents\MATLAB\NewFolder')
addpath('C:\Users\User\Documents\MATLAB\NewFolder')
savepath

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by