Open MATLAB file from another directory

조회 수: 2 (최근 30일)
K Laan
K Laan 2015년 10월 16일
댓글: Jan 2015년 10월 16일
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
Jan
Jan 2015년 10월 16일
Please post the code which causes the error. Otherwise it is hard to guess blindly.

댓글을 달려면 로그인하십시오.

답변 (1개)

Dennie
Dennie 2015년 10월 16일
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

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by