I am trying to solve this equation
So the place my vehicle is, depends on the acceleration an the time. I want to solve this equation with ode45 so that I get the place and acc during all given times.
This is my code:
[t,x]=ode45(@fun,[0 30],[0 0])
Problem is that Matlab returns only returns NaN values. Could someone please explain why?