how to create a newfolder and save images in it?
172 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Pradeep Gowda
il 10 Mag 2015
Commentato: Jorge Ignacio Cisneros Saldana
il 3 Ott 2022
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?
0 Commenti
Risposta accettata
Walter Roberson
il 10 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!