Displaying selected file name in App Designer
Ältere Kommentare anzeigen
I have been working on a portion of a GUI that allows a user to select an input file via uigetfile() in the callback of a Browse button. I am looking to display the selected file name/path on the GUI. There are pre-defined files that the GUI can use if the user doesn't select any. So on top of displaying a user's selection I want to display the pre-defined file name when the GUI launches.
Here is a picture of my GUI, note that the Text Edit Fields are there to try to show what I am talking about.

Here is the code for the "Select sensor coordinates file" Browse button
% Button pushed function: sensorBrowseButton
function sensorBrowseButtonPushed(app, event)
% select sensor coordinates file
app.coordFile = uigetfile('*.txt','Select sensor coordinates file',...
'sensors');
end
Hopefully I have been clear enough in my question.
Thanks in advance!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Develop Apps Programmatically finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


