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

 Réponse acceptée

Jan
Jan le 8 Mar 2018
Modifié(e) : Jan le 8 Mar 2018

1 vote

Folder = 'C:\Your\Folder';
File = 'Image.png';
Img = rand(640, 480, 3);
imwrite(Img, fullfile(Folder, File));

3 commentaires

sneha madda
sneha madda le 12 Juin 2019
Thank you it helped me.
Kashyap Koshti
Kashyap Koshti le 20 Juil 2020
can it rewrite on same image?
Image Analyst
Image Analyst le 20 Juil 2020
Yes, you can overwrite an existing image.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by