How can fix the Error using dir Function is not defined for 'cell' inputs?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sowjanya boddeti
il 25 Feb 2016
Modificato: Stephen23
il 25 Feb 2016
rootpath = {};
D = dir(rootpath);
1 Commento
Risposta accettata
Guillaume
il 25 Feb 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!