///withoutPrompt function [XX,T]=simul_car(TT,X) Tt=TT; // remaining time instances XX=[];T=[]; // intialization of outputs tc=0; //current time delt=1d-3; // time interval without root while 1 t=tc+delt; It=find(Ttrd(1))); // update remaining time instances end endfunction ///\withPrompt{}