what is the use of the symbol '*' in the function named fullfile?
이전 댓글 표시
Hi,what is the significance of the asterik symbol '*' in the following statement...
filePattern = fullfile(myFolder, '*.jpg');
채택된 답변
추가 답변 (1개)
Dr. Seis
2012년 2월 9일
It means that any file whose name is something.jpg will be used. For example if:
myFolder = '/home/yourfolder';
then
filePattern = fullfile(myFolder,'*.jpg');
will return
filePattern =
'/home/yourfolder/*.jpg'
An then
>> dir(filePattern)
might return something like:
pic001.jpg
pic002.jpg
pic003.jpg
pic004.jpg
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!