change current directory in gui
조회 수: 6 (최근 30일)
이전 댓글 표시
hi I build a gui page contain 21 push button and named it main page when you click every push button a new page will open, therefor I have 22 m-file that has saved in one folder. I need to categorized my m-files and save them in seperated folder. but I cant change current directory I mean before I has wrote in every callback push button some thing like this handels=guidata(GeneralData) and when I save GeneralData page in another folder (somewhere not beside main page) what should I write? sincerely
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2013년 8월 3일
Why do you need to change the current directory? If you want to save a file in a folder of your choice,type
folder='E:\matlab',% for example
file='yourfile'
ful_file=fullfile(folder,file)
then save ful_file
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!