Get the folder path in GUI
    12 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Bohan Wu
 el 7 de Ag. de 2019
  
    
    
    
    
    Comentada: Walter Roberson
      
      
 el 8 de Ag. de 2019
            Hi, 
Is there any way allow me to do this:
- Cilck the push button, something like the uiputfile poped up
- I choose certain random path and click 'OK'
- this path will be shown as the static text in my GUI
Thanks!
0 comentarios
Respuesta aceptada
  awezmm
      
 el 8 de Ag. de 2019
        
      Editada: awezmm
      
 el 8 de Ag. de 2019
  
      Running this:
[file,path] = uiputfile; 
returns the selected or specified file path to path.
You can get the fullfile path by doing:
fullfilepath = fullfile(path, file)
You can put the variable fullfilepath into a static text box since it is a string.
1 comentario
  Walter Roberson
      
      
 el 8 de Ag. de 2019
				However, we recommend not using path as the name of a variable, as that interferes with using the MATLAB function named path
Más respuestas (0)
Ver también
Categorías
				Más información sobre Dialog Boxes 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!


