Searching files
조회 수: 37 (최근 30일)
이전 댓글 표시
Is it possible to search the file in the matlab using matlab codes? Plz respond...
댓글 수: 1
Jan
2012년 4월 22일
Please add the necessary details: Are you looking for a file name, or a specific contents of a file?
채택된 답변
Junaid
2012년 4월 22일
yes it is possible to search files.
you can write code as you like. For example I want to search file 'test.txt' in current folder c:/matlab/ then I can do like this.
files = dir('c:/matlab/*.txt');
now files contains all files with txt format. now you can loop for your file.
there are many other ways. This is just example to show you.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
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!