Can't save image with 300 dpi
Show older comments
I am using matlab R2020b-academic use
.
.bar([1 11 7 8 2 2 9 3 6])
f = gcf;
exportgraphics(f,'barchart.jpg','Resolution',300)
print(gcf,'fig1.jpg','-djpeg','-r300');
I have tried to use export_fig, exportgraphics, and print command to save iamge with 300 dpi. But non of them are working.
Besides I used same code several months ago and it was working perfectly, now it is saving image with 96 dpi by default. I have tried malab given examples for saving images for higher resolution, but same problem.
Accepted Answer
More Answers (0)
Categories
Find more on Printing and Saving 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!