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!