Effacer les filtres
Effacer les filtres

What does '* *' mean in matlab?

32 vues (au cours des 30 derniers jours)
Victoria Helm
Victoria Helm le 16 Juin 2020
Modifié(e) : Stephen23 le 16 Juin 2020
For example:
D = dir(fullfile(logfilepath,'**','*.log'))

Réponses (1)

Stephen23
Stephen23 le 16 Juin 2020
Modifié(e) : Stephen23 le 16 Juin 2020
The double asterisk tells dir to recursively search the provided path, the documentation explains it with "and dir **/*.txt lists all files with a txt extension zero or more folders under the current folder. Characters next to a ** wildcard must be file separators." This feature was introduced in R2016b, so if you use an earlier version you will have to use an alternative, e.g. one of these:

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by