move all pictures from other folder based on variable value

hello, i want to know what is wrong in my code?
d = dir('C:\Users\mark\Desktop\DATABASE')
n = length(d)-2
n=num2str(n)
mkdir('C:\Users\mark\Desktop\DATABASE',n)
movefile('C:\Users\mark\addnew\*jpg','C:\Users\mark27\Desktop\DATABASE\',n)

2 件のコメント

Sara
Sara 2015 年 1 月 14 日
Try
movefile('C:\Users\mark\addnew\*jpg',['C:\Users\mark27\Desktop\DATABASE\',n])
mark
mark 2015 年 1 月 14 日
thankyou sara :*

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2015 年 1 月 14 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by