function batch_export_figures

%print -depsc2 -cmyk -painters -r1000 matilda6

%cd H:\papers_andabstracts_in_progress\single_syn_stdp_dwn_figs\single_syn_figs_summer2007\figure3_pscslope_predictsinduc
while gcf>1
    %ylim([0 1])
    %set(gca,'ytick',[0 1])
    tytull='latency_from_onsetofsodiumcurrent, threshold of 2';
    a=gcf;
	b=strcat(tytull,num2str(a));
    title(b)
    %ylabel(b)
    print('-depsc2','-painters',b)
    close
end