How can fix the Error using dir Function is not defined for 'cell' inputs?
1 回表示 (過去 30 日間)
古いコメントを表示
rootpath = {};
D = dir(rootpath);
1 件のコメント
採用された回答
Guillaume
2016 年 2 月 25 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!