Returns a cell array of all files matching the wildcard expression "refiles" beginning in the root folder "root". Includes subdirectories.
%---Example:
mfiles = getfilenames('c:\','*.m') will return all .m files on the c drive to the cell array "mfiles".
Citar como
Joseph Burgel (2025). getfilenames.m (https://es.mathworks.com/matlabcentral/fileexchange/2118-getfilenames-m), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.4.0.0 | Bug Fix |
||
| 1.3.0.0 | Thanks to Kenn Sebesta. His Comments: Hi, I fixed getfilenames.m to work with Mac. I'm betting it works with
The secret ingredient was `fullfile`, which lets Matlab decide for
|
||
| 1.2.0.0 | Bug fix on line 36. Changed 'cd' to 'root'. Thanks Elena. |
||
| 1.1.0.0 | Removed the cd to other folders per suggestion. Now, it stays in the folder where it was called. Also added ability to simply return all subfolder names only if a single root folder argument is passed. |
||
| 1.0.0.0 |
