Filter löschen
Filter löschen

How to create new folder for each iteraton

9 Ansichten (letzte 30 Tage)
Aarthi A
Aarthi A am 22 Sep. 2017
Kommentiert: Hrituraj Kumar am 23 Apr. 2021
For each iteration i need to create new folder and save the image in that folder

Akzeptierte Antwort

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH am 22 Sep. 2017
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 Kommentare
Vinay singh
Vinay singh am 17 Apr. 2019
thanks brother
Hrituraj Kumar
Hrituraj Kumar am 23 Apr. 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?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (3)

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

kousar majeed
kousar majeed am 12 Jun. 2019
extracting frame from video in matlab

Aarpita Sood
Aarpita Sood am 24 Aug. 2019
Hi
How do I get spectrogram for 1000 .wav files and how to store the results for analysis??

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by