Open MATLAB file from another directory

8 visualizaciones (últimos 30 días)
K Laan
K Laan el 16 de Oct. de 2015
Comentada: Jan el 16 de Oct. de 2015
I want to open MATLAB figure files from another directory than they were originally stored. Is this possible? For this I guess I would have to change the underlying path... The program is now giving me this warning: 'Could not find appropriate function on path loading function handle.'
  1 comentario
Jan
Jan el 16 de Oct. de 2015
Please post the code which causes the error. Otherwise it is hard to guess blindly.

Iniciar sesión para comentar.

Respuestas (1)

Dennie
Dennie el 16 de Oct. de 2015
I'm not sure I fully understand your question, but I think you mean just to load an image that is not on your current path.
Two ways of doing this:
1. Add the directory to your path
addpath('<your_path>');
2. Specify the path in the open command
open('<your_path>')
(use winopen() if the figure is not a matlab figure)
Best regards,
Dennie

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by