function [value,isterminal,direction] = eventfunction(t,y)

% value = y(1);
% direction = [];
% isterminal = true;

value = t-5;
direction =[];
isterminal = false;