How to get only foldername with uigetdir
94 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I want to select a folder (would be subfolder2 in my example) and use its name as a string. The problem is that not only the foldername but the whole location is the output of uigetdir().
name = uigetdir('./subfolder1/');
Is there a simple function to just get the name of the selected folder?
Cheers, J
1 commentaire
Guillaume
le 27 Juin 2017
But what if the user navigate to a completely different folder? Maybe not even on the same drive?
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!