How to replaced image in folder?

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.

回答 (1 件)

KSSV
KSSV 2018 年 7 月 11 日

0 投票

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

質問済み:

2018 年 7 月 11 日

回答済み:

2018 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by