Ineed to save my output image using a filename in one folder? How is it possible?

 Accepted Answer

Jan
Jan on 8 Mar 2018
Edited: Jan on 8 Mar 2018
Folder = 'C:\Your\Folder';
File = 'Image.png';
Img = rand(640, 480, 3);
imwrite(Img, fullfile(Folder, File));

3 Comments

Thank you it helped me.
can it rewrite on same image?
Yes, you can overwrite an existing image.

Sign in to comment.

More Answers (0)

Tags

Asked:

on 9 Feb 2018

Commented:

on 20 Jul 2020

Community Treasure Hunt

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

Start Hunting!