How can I make the browse pushbutton on my GUI in Matlab functional?
1 回表示 (過去 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 で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!