How can I use variables in mkdir?

45 views (last 30 days)
Tina on 8 Aug 2013
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

Accepted Answer

Friedrich on 8 Aug 2013
what about
a = 'hello'
b = 'world'
c = 12
d = 'xxx'
Jan on 8 Aug 2013
Edited: Jan on 8 Aug 2013
What does "doesn't work" mean? What happens instead? What is the type and the valuer of your variables a and b? The original question is not clear in this point.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by