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

Try
movefile('C:\Users\mark\addnew\*jpg',['C:\Users\mark27\Desktop\DATABASE\',n])
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