필터 지우기
필터 지우기

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 CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by