How can I make the browse pushbutton on my GUI in Matlab functional?
조회 수: 3 (최근 30일)
이전 댓글 표시
Code:
FileName = 'kWilliams.txt';
FileName;FilePath = uigetfile();
ExPath = [FilePath FileName];
Currently, it opens up the windows gui that "select file to open". However, when I try to select a file and open the file everthing just disappears
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 6월 3일
[FileName,FilePath ]= uigetfile();
ExPath = fullfile(FilePath, FileName)
댓글 수: 5
Azzi Abdelmalek
2013년 6월 3일
function Browse1_Callback(hObject, eventdata, handles)
[FileName,FilePath ]= uigetfile();
ExPath = fullfile(FilePath, FileName);
set(handles.Filename1,'string',ExPath)
추가 답변 (1개)
Emanuel
2015년 5월 4일
Hello, I want now to simulate the browsed file (.mdl) with a push button. what command do I use? set_param(' ??? ,'SimulationCommand','start'); thanks for the information
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!