save to eps ans svg saveas(gcf, 'Newton_optimization_vs_grad_descent.eps', 'psc2') % plot2svg('Newton_optimization_vs_grad_descent.svg') function plot_contours(f...