I want to load a folder in appdesigner by using "button" and to load the path of the folder in the "EditField". How?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Harish M Y
el 7 de Jul. de 2021
Respondida: Rik
el 7 de Jul. de 2021
Hi,
I am trying to upload the folder using "Button" in appdesigner callback function and I want to store the folder directory in "EditField". May I know how to get this?
I am trying the code like:
[folder,app.selectedPath] = uigetdir();
if isequal(folder,0)
app.EditField_2.Value = "User Selection cancel";
else
app.EditField_2.Value = fullfile(folder);
app.EditField_2.Value = fullfile(app.selectedPath);
end
0 comentarios
Respuesta aceptada
Rik
el 7 de Jul. de 2021
The uigetdir function only has 1 output.
folder = uigetdir();
if isequal(folder,0)
app.EditField_2.Value = "User Selection cancel";
else
app.EditField_2.Value = folder;
end
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!