GetExtension

Version 1.0.0.0 (602 Bytes) von John McArthur
Gets the extension of a file.
1,1K Downloads
Aktualisiert 10. Jul 2007

Keine Lizenz

Gets the extension of a filename. The extension is assumed to be the last dot of the filename and all characters following the last dot. If there is no dot, then FileExtension is empty.

This code seems useful when you allow the user to select a file (eg. using uigetfile), and you want to do different things based on the extension of the file the user has chosen. You could do this with the index options of uigetfile, but this gives a way for the user to see all files in a directory, and still determine the type of file that was chosen.

Zitieren als

John McArthur (2024). GetExtension (https://www.mathworks.com/matlabcentral/fileexchange/15537-getextension), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: findfiles

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0