Question: Use ode45 to estimate y'(3), where y is the solution to the initial value problem y" + (1/t)*y = 0 ; y(0) = 0, y'(0) = 2. Note I'm asking for an estimate of the derivative, not the function itself.
Attempted code:
ode = @(t, y) [y(2) ; (1/t)*y(1)];[t, y] = ode45(ode, [-1, 3], [0, 2]);y(end, 1);
I do not think this actual estimating the derivative y'(3)?
Best Answer