Borrar filtros
Borrar filtros

how to create a newfolder and save images in it?

213 visualizaciones (últimos 30 días)
i'm accessing all the images in a folder and processing it. now i wanna save all these images in a new folder. the question is how do i create a new folder and start saving the processed images into the new folder?

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Mayo de 2015
You would use mkdir() to create the new directory, and you would use the instructions I gave in your previous Question to save the files to there.
For example,
destdirectory = 'C:\Documents and Settings\Pradeep\Processed';
mkdir(destdirectory); %create the directory
thisimage = 'skidoo023.jpg';
fulldestination = fullfile(destdirectory, thisimage); %name file relative to that directory
imwrite(TheData, fulldestination); %save the file there directory
  9 comentarios
Raka Mukherjee
Raka Mukherjee el 15 de Nov. de 2019
I have figured out the issue, Thanks.
Jorge Ignacio Cisneros Saldana
Jorge Ignacio Cisneros Saldana el 3 de Oct. de 2022
What was the issue?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by