MATLAB: Can’t MATLAB resize an image nicely

awfulimageimshowlooks terriblepictureresizewhy matlab

So I have an image with some text on it that I want to display in MATLAB for whatever reason, sounds easy enough, but it turns out that for some reason I hope to find out, MATLAB is apparently awful at rendering images to actually look nice.
I have a feeling there are performance reasons for this, but it seems like users should be able to resize an image with text on it and still actually read the image.
I have attached a sample image showing the original image, a highly distorted but still readable version of the image in Microsoft Word, and then an ever so slightly distorted version of the image in MATLAB which still looks awful.
If anyone can either explain how to fix this, or why its unfixable and why I should like it that way, I would really appreciate it!

Best Answer

Would you please provide some code as to how you are displaying, resizing, and exporting the data from MATLAB so that we can better understand what you are trying to do?
One thing I would try is that I suspect you are using image/imagesc instead of imshow to display that data. If you aren't careful with the data aspect ratio in your axes, this will distort the text in display. If you cannot use imshow (IPT dependency), try this:
A = imread('http://www.antigrain.com/research/font_rasterization/msword_text_rendering.png');
image(A)
truesize
This will display your data at the original aspect ratio, which is definitely something you need when working with text.