export matlab graph as image code example Example: matlab how to save figure as vector exportgraphics(gcf,'test.eps','ContentType','vector')