How to replaced image in folder?

1 次查看(过去 30 天)
Veizal Rasyid
Veizal Rasyid 2018-7-11
回答: KSSV 2018-7-11
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
Let your image name be myimage.
if exist(myimage,'file')
error('this image exists in the folder, please choose different name\n') ;
end

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by