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!