With the newer Matlab version (R2022b), the quality of the exported figures is worse than before. Maybe use https://ch.mathworks.com/matlabcentral/fileexchange/23629-export_fig to export them?