MATLAB: Save- path for image using the function “imwrite()”

fileimreadimshowmatlab pathsavewrite

Hi
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?
Matar Maoz

Best Answer

The image gets written to the current directory by default. You can specify an explicit path when you imwrite()