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