0001 function plot_file(x,y,filename) 0002 0003 hfig=figure('Visible','off'); 0004 plot(x,y) 0005 saveas(gcf,filename,'png') 0006 close all