problem with uigetdir in uploading files from it .
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i created a push button to browse a directory. It works but then I need to upload pics from this directory.
For the browse push button i used:
global c1;
c1=uigetdir;
and for uploading pictures from the directory i used:
global c1;
srcFiles = dir(c1\'*.jpg');
but i get an error saying 'dir is not defined for double inputs'.
0 comentarios
Respuesta aceptada
Image Analyst
el 28 de Mayo de 2013
filePattern = fullfile(c1, '*.jpg');
srcFiles = dir(filePattern);
2 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!