フィルターのクリア

how to create a newfolder and save images in it?

213 ビュー (過去 30 日間)
Pradeep Gowda
Pradeep Gowda 2015 年 5 月 10 日
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?

採用された回答

Walter Roberson
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 件のコメント
Raka Mukherjee
Raka Mukherjee 2019 年 11 月 15 日
I have figured out the issue, Thanks.
Jorge Ignacio Cisneros Saldana
Jorge Ignacio Cisneros Saldana 2022 年 10 月 3 日
What was the issue?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by