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 comentarios

Try
movefile('C:\Users\mark\addnew\*jpg',['C:\Users\mark27\Desktop\DATABASE\',n])
thankyou sara :*

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Preguntada:

el 14 de En. de 2015

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by