what will thie do filePattern = [imagesFolder, '\*.*'];

조회 수: 3 (최근 30일)
Kanwal Kaur
Kanwal Kaur 2016년 11월 18일
답변: KSSV 2016년 11월 18일
what will this statement will do ?
filePattern = [imagesFolder, '\*.*'];

채택된 답변

KSSV
KSSV 2016년 11월 18일
Folder = 'path of the file';
filePattern = [Folder, '\*.*'];
It concatenates/ joins the path Folder and '\*.*'. Now filepattern can be used to get the details of the files present in the given path of all possible extensions. It will be helpfull to get the files present in the folder.
F = dir(filePattern) ;
F will be a stricture with information of files in the folder.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by