function [DF,F]=rk_func(sw,t_anf,t_end,model,plott) t=t_anf; h=0.0001; x=sw; A=eye(length(sw)); t1=t_end-h/2; if plott==1 lo1(1)=x(1); lo2(1)=x(2); i=1; T(1)=t_anf; end while t