GetExtension

バージョン 1.0.0.0 (602 Bytes) 作成者: John McArthur
Gets the extension of a file.
ダウンロード: 1.1K
更新 2007/7/10

ライセンスがありません

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.

引用

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

MATLAB リリースの互換性
作成: R2007a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFile Operations についてさらに検索
謝辞

ヒントを得たファイル: findfiles

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0