what is the use of the symbol '*' in the function named fullfile?
Ältere Kommentare anzeigen
Hi,what is the significance of the asterik symbol '*' in the following statement...
filePattern = fullfile(myFolder, '*.jpg');
Akzeptierte Antwort
Weitere Antworten (1)
Dr. Seis
am 9 Feb. 2012
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
1 Kommentar
Manoj Murali
am 9 Feb. 2012
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!