You can specify the desired resolution for saving the image either from the command line or from the File menu.
Command line: Using print , just enable the -r### option, where ### if the required permission. Usually 300 dots per inch (dpi) is high enough for my purposes, but if necessary, feel free to go higher. Obviously, the higher the dpi, the larger the image file size.
print(gcf,'foo.png','-dpng','-r300'); *
View the MATLAB print documentation to see all print options that you can configure as follows.
File menu: Or, using "File β Export installation ...", on the left side select "Rendering", then configure "Resolution (dpi)". The default value is "auto".
Like the command line, there are many printing options that you can configure in the File menu. Once you have worked hard and got everything you want, you can save the current export settings by default, so you do not need to do this every time you save a shape. This is done at the bottom of the same menu "Export Styles β Save as style named:" β select "default" and click "Save".
Here are some more good tips for keeping good shapes in MATLAB:
Geoff source share