function odesol = shootingfunction(z)
uzero = [z 0]'; 
[tsave,usave] = ode45(@f,[0 10],uzero);
plot(tsave,usave)
odesol = usave(end,1);
