How to replaced image in folder?

1 view (last 30 days)
Veizal Rasyid
Veizal Rasyid on 11 Jul 2018
Answered: KSSV on 11 Jul 2018
Hi guys. I have a question, that is how to duplicate an image in the folder? for example i have a picture in folder a, then i will save new image into folder a, and the previous image will be erased and replaced with new image.

Answers (1)

KSSV
KSSV on 11 Jul 2018
Let your image name be myimage.
if exist(myimage,'file')
error('this image exists in the folder, please choose different name\n') ;
end

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!