% % %Solution to Assignment 10, exercise 3, parts d and e % %F. Gabbiani 04/05/07 % %This m-file runs the two functions % %lif_syn_fig and lif_syn_fig2 % %lif_syn_fig requires the m-file liandfr3 % %lif_syn_fig2 requires the m-file liandfr4 % %plots the resulting data disp('running LIF with excitation only...'); [m_isis, cv_isis] = lif_syn_fig; disp('running LIF with excitation and inhibition...'); [m_isis2,cv_isis2] = lif_syn_fig2; figure; h1 = line(m_isis,cv_isis,'Marker','o','Color', 'r'); hold on; h2 = line(m_isis2,cv_isis2, 'Marker','p', 'Color','g'); xlabel('mean isi (ms)'); ylabel('CV'); legend([h1 h2],'without inhibition','with inhibition');