Save- path for image using the function "imwrite()"
32 views (last 30 days)
matar maoz on 13 Feb 2011
when I use the imshow() function, I know that I have the image that I want to display in one of the files in the *MATLAB path.
For instance, when I take a picture with my webcam, I want to save it by using imwrite.
where has the image been written to?
More Answers (1)
Jan on 13 Feb 2011
IMWRITE writes to the current folder, so these two commands are equivalent:
image = rand(100, 100, 3);
imwrite(image, fullfile(cd, 'File.png'))
The later method can be used to specifiy the wanted directory.