MATLAB: To save the existing file can I use append function

append functionoverwrite

hi sir,I use append function in matlab to save the existing image that have been save in a folder. however, when I run the program again, the image is overwritten and rewrite with other image.what should I do.thanks! syntax: filename1:strcat('user/matlab/folder',num2str,'.jpg')) imwrite(x,filename1,'writemode','append')

Best Answer

  1. You cannot append to a JPEG.
  2. You num2str does not have an argument.