function p = rabbitvel(t) % usage: p = rabbitvel(t) % description: gives vector velocity of rabbit. % we allow for different paths by way of a global...coordinate w. rabbitpos global pathnum; switch pathnum case 0 p = (1+t/10)*[-sin(t);cos(t)]+(1/10)*[cos(t);sin(t)]; otherwise end