how to create a newfolder and save images in it?
213 ビュー (過去 30 日間)
古いコメントを表示
Pradeep Gowda
2015 年 5 月 10 日
コメント済み: Jorge Ignacio Cisneros Saldana
2022 年 10 月 3 日
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 件のコメント
採用された回答
Walter Roberson
2015 年 5 月 10 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!