How to create new folder for each iteraton

 Respuesta aceptada

an example:
for k=1:5 %for k=1,2,3,4,5
name=['folder' num2str(k)];%new folder name
mkdir(name)%create new folder
imwrite(rand(50,50),fullfile(name,'image.jpg'))%write random image
end

2 comentarios

Vinay singh
Vinay singh el 17 de Abr. de 2019
thanks brother
Hrituraj Kumar
Hrituraj Kumar el 23 de Abr. de 2021
imwrite(rand(50,50),fullfile(name,'image.jpg')) is only vaild for rand.
If we need to create a plot and save then what we can do?

Iniciar sesión para comentar.

Más respuestas (3)

kousar majeed
kousar majeed el 12 de Jun. de 2019

0 votos

how to make a frame from video and every frame should be save in frame folder
kousar majeed
kousar majeed el 12 de Jun. de 2019

0 votos

extracting frame from video in matlab
Aarpita Sood
Aarpita Sood el 24 de Ag. de 2019

0 votos

Hi
How do I get spectrogram for 1000 .wav files and how to store the results for analysis??

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Sept. de 2017

Comentada:

el 23 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by