MATLAB: What will thie do filePattern = [imagesFolder, ‘\*.*’];

image processingMATLAB

what will this statement will do ?
filePattern = [imagesFolder, '\*.*'];

Best Answer

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.