How can I use variables in mkdir?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello;
Let's say I have four different variables (a, b, c, d) and I want to create folders using these variables as the name of my folder (folder name= a.b.c.d) How can I do this using mkdir?
Thanks, Tina
0 Kommentare
Akzeptierte Antwort
Friedrich
am 8 Aug. 2013
Hi,
what about
a = 'hello'
b = 'world'
c = 12
d = 'xxx'
mkdir([a,'.',b,'.',num2str(c),'.',d])
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Power Converters 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!