Clear Filters
Clear Filters

Plot save as jpg error

2 views (last 30 days)
Jiho Ryoo
Jiho Ryoo on 25 Dec 2020
Commented: Jiho Ryoo on 25 Dec 2020
Hello.
I am using 2020b version MATLAB, and have plot save issue.
When I plot a graph and try to save it as jpg file, there rises the proble. It saves ok for most times, but ocasionally (about once a five times) MATLAB will just shut down. It usually works well when I restart MATLAB.
After the shutdown, when I check the directory that I tried to save the jpg plot, empty file is saved.
What might be the possible reason for this? Maybe hardware issue? I am using laptop with I5 CPU and 8GB RAM.
Thank you.

Answers (1)

Image Analyst
Image Analyst on 25 Dec 2020
Who knows the reason - you didn't tell us what the error said. It doesn't really matter anyway, because you should not be using JPG anyway. I mean, who wants to deal with lousy compression artifacts? Save the file as PNG, which is pretty much the new standard these days. It's a lossless compression scheme and will give better looking pictures.
  1 Comment
Jiho Ryoo
Jiho Ryoo on 25 Dec 2020
I don't know the error code; the program will just shut down without printing anything! TT
And thank you for letting me know to use png. To be honest, I thought jpg was better than png till now. lol.
Thank you for answering!

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!