'HorizontalAlignment', 'c', 'VerticalAlignment', 'top'); end saveas(gcf, 'Finite_element_method_1D_illustration2.eps', 'psc2') % export to eps function ball(x, y, r, color)...