How can fix the Error using dir Function is not defined for 'cell' inputs?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
sowjanya boddeti
le 25 Fév 2016
Modifié(e) : Stephen23
le 25 Fév 2016
rootpath = {};
D = dir(rootpath);
1 commentaire
Réponse acceptée
Guillaume
le 25 Fév 2016
The fix is simple, don't pass a cell (an empty one at that) to dir.
It's not clear what you're trying to do. rootpath must be a string that points to a valid path on your machine. Maybe,
rootpath = 'C:\';
but only you know what it should really be.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations 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!