Can you mass produce sub folders in a parent folder using 'mkdir'and a variable? Can't figure out how have mkdir function read a variable.
Say we try to mass produce folders titled the following numbers:
>> x = [222990, 222991, 222992, 222993, 222994, 222995]
mkdir parentFolder x (doesn't work, just produces a single folder titled x)
mkdir parentFolder "x" (doesn't work, same issue)
mkdir parentFolder 'x' (doesn't work, same issue)
mkdir parentFolder [x] (doesn't work, same issue)
mkdir parentFolder (x) (doesn't work, same issue)
mkdir parentFolder ['x'] (doesn't work, same issue)
mkdir parentFolder ["x"] (doesn't work, same issue)
2 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/694775-how-to-have-function-mkdir-read-a-variable#comment_1210040
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/694775-how-to-have-function-mkdir-read-a-variable#comment_1210040
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/694775-how-to-have-function-mkdir-read-a-variable#comment_1210075
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/694775-how-to-have-function-mkdir-read-a-variable#comment_1210075
サインインしてコメントする。