Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Renaming Files Program not doing task, New to MATLAB

2 visualizaciones (últimos 30 días)
Michael Cimorelli
Michael Cimorelli el 15 de Ag. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have have this code to rename files, but when I run it I am getting the following results.
Any help would be greatly appreciated... I am attempting to rename a bunch of files from Untitled.0001 to 1,2,3...jpg.

Respuestas (1)

Image Analyst
Image Analyst el 15 de Ag. de 2016
No, you did not get the second screenshot from running the first screenshot. I know because the second screenshot will have filetype end in *.jpg while your first screenshot had filetype ending in untitled.0001.jpg. That could NOT happen with the code on the right.
  8 comentarios
Thorsten
Thorsten el 16 de Ag. de 2016
Editada: Thorsten el 16 de Ag. de 2016
Directories do not start with 'C:' on Mac OS, and directories are separated with '/'. Use:
folder = '/Users/MichaelCimonrelli/Documents/MATLAB/NameChange';
You can use
pwd
to have a look at how a correct dirname looks like.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by