Error using imwrite command

2 views (last 30 days)
Hello. I wrote an example of the imwrite function in Matlab 2019Rb version, but it gives an error. Please help me.

Accepted Answer

Walter Roberson
Walter Roberson on 27 Sep 2022
MATLAB cannot automatically determine the image type being requested when you ask for a file name with extension jpg<SPACE> .
I recommend that you remove the leading and trailing spaces from your file names.

More Answers (0)


Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!