What does '* *' mean in matlab?
조회 수: 32 (최근 30일)
이전 댓글 표시
For example:
D = dir(fullfile(logfilepath,'**','*.log'))
댓글 수: 0
답변 (1개)
Stephen23
2020년 6월 16일
편집: Stephen23
2020년 6월 16일
The double asterisk tells dir to recursively search the provided path, the documentation explains it with "and dir **/*.txt lists all files with a txt extension zero or more folders under the current folder. Characters next to a ** wildcard must be file separators." This feature was introduced in R2016b, so if you use an earlier version you will have to use an alternative, e.g. one of these:
댓글 수: 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!