How do I change the browsing directory, when clicking the 'Open' icon in the editor, to the current working directory?

1 visualización (últimos 30 días)
When I click on the 'Open' icon in the editor, the browsing window that pops up opens the directory of the currently (active), already opened file in the editor. I would like it to always open in the 'current working directory'. Is there a setting to change this?

Respuestas (1)

MA
MA el 30 de Oct. de 2014
before open matlab do this: first copy your desired directory then right click on matlab icon, go to "properties" and paste your directory in "start in" and click "ok" Good luck
  2 comentarios
Paul
Paul el 30 de Oct. de 2014
Thanks, I did not know about that option. However, my problem is that during one Matlab session, I work in different directories, so my current working directory (pwd) changes as I move around. After changing my pwd, I would typically like to open a file that lies in that directory... but the browser opens in the directory of the currently active 'opened' file in the editor. I can then either 1) browse to the pwd, or 2) create a 'New' file in the editor and then click on ' Open' icon, which will then open in the pwd. But there must be a setting so that the browser will always open in the pwd???
MA
MA el 2 de Nov. de 2014
another way to do this, writing your desired directory with cd code in the command window, for exmaple my directory is C:\peace\one , you should write code as following:
cd C:\peace\one
you should notice that this directory does exist otherwise it gives you an error

Iniciar sesión para comentar.

Categorías

Más información sobre Search Path 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