Browse option In matlab GUI
이전 댓글 표시
HI All, I am very new to Matlab Gui
I am designing GUI,
GUI has Browse Push Button , where User can Type the Path in Gui, Next By Pressing Browse Push button it should root it to exact path given by user, It is similar RUN Dialogue Box In Windows Start.
Can any one Help on this Please?
댓글 수: 3
Walter Roberson
2013년 10월 30일
Please expand on what you mean by "root it".
Is cd() a suitable way to "root" it for your purposes?
Hussain
2013년 10월 30일
Hussain
2013년 10월 30일
답변 (2개)
ES
2013년 10월 30일
yes.. cd should do. on the Browse button's callback, read the value from the text box.
In the Button's callback
TextPath=get(handles.textbox,'string')
try
cd(TextPath)
catch errorE
dis(errorE.message);
end
Image Analyst
2013년 10월 30일
0 개 추천
Maybe try this instead: http://www.mathworks.com/matlabcentral/fileexchange/10867-uipickfiles-uigetfile-on-steroids
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!