How to rename a file with a string from user input?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I would like to use a string from a text in prompt and then use movefile to rename a pdf file. Unfortunately, I can't figure out how to use the string for the file name. I would really appreciate your help.
Thanks, Stefan
0 Kommentare
Antworten (1)
KSSV
am 30 Jan. 2018
prompt = 'Give name of file:' ;
str = input(prompt,'s') ;
Now use str
1 Kommentar
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!