How can fix the Error using dir Function is not defined for 'cell' inputs?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sowjanya boddeti
am 25 Feb. 2016
Bearbeitet: Stephen23
am 25 Feb. 2016
rootpath = {};
D = dir(rootpath);
1 Kommentar
Akzeptierte Antwort
Guillaume
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!