フィルターのクリア

Hi, how should I display the name for image. Only Name without the pathways.

2 ビュー (過去 30 日間)
JI RONG
JI RONG 2022 年 12 月 2 日
コメント済み: JI RONG 2022 年 12 月 3 日
InfoImage = imfinfo(filename);
imgName = InfoImage.Filename;
app.FileNameEditField.Value = [imgName];
Thank you for your help.

採用された回答

Walter Roberson
Walter Roberson 2022 年 12 月 2 日
[~, imgName, extension] = fileparts(InfoImage.Filename);
Then use either imgName alone or [imgName, extension] if you want to preserve the extension.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by