Using the ODE45 Function in the program Matlab how would you
Using the ODE45 Function in the program Matlab, how would you determine the value of the dependent variable at some value of time?
Solution
write
tspan=[0 20]
y0=[2 0]
[t,y]=ode45[@objectivefun,tspan,y0]
where y will give the dependant variable function values and t is independant variable obj fun has terms like d^2t/dx^2 dt/dx......
![Using the ODE45 Function in the program Matlab, how would you determine the value of the dependent variable at some value of time?Solutionwrite tspan=[0 20] y0= Using the ODE45 Function in the program Matlab, how would you determine the value of the dependent variable at some value of time?Solutionwrite tspan=[0 20] y0=](/WebImages/34/using-the-ode45-function-in-the-program-matlab-how-would-you-1098646-1761579958-0.webp)