How to create new folder for each iteraton

For each iteration i need to create new folder and save the image in that folder

 채택된 답변

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2017년 9월 22일

1 개 추천

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

Vinay singh
Vinay singh 2019년 4월 17일
thanks brother
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?

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

kousar majeed
kousar majeed 2019년 6월 12일

0 개 추천

how to make a frame from video and every frame should be save in frame folder
kousar majeed
kousar majeed 2019년 6월 12일

0 개 추천

extracting frame from video in matlab
Aarpita Sood
Aarpita Sood 2019년 8월 24일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by