フィルターのクリア

create own file extension name

1 回表示 (過去 30 日間)
Amir Hamzah UTeM
Amir Hamzah UTeM 2011 年 6 月 27 日
Hi all, how can i create a file with my own extension filename? for examples:
i have a string variables word, Word='Matlab'
when i combine it with my own extension (let say .001) i want to get something like this, Word.001 (it will show: Matlab.001)
how can i do that?what function that can i use? thanks.

採用された回答

Amir Hamzah UTeM
Amir Hamzah UTeM 2011 年 6 月 27 日
found it..i can use sprintf function.
W='Matlab'
s=sprintf('%s.001',W)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by