How to create new folder for each iteraton
9 次查看(过去 30 天)
显示 更早的评论
For each iteration i need to create new folder and save the image in that folder
0 个评论
采纳的回答
JESUS DAVID ARIZA ROYETH
2017-9-22
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 个评论
Hrituraj Kumar
2021-4-23
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
2019-6-12
how to make a frame from video and every frame should be save in frame folder
0 个评论
Aarpita Sood
2019-8-24
Hi
How do I get spectrogram for 1000 .wav files and how to store the results for analysis??
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!