It looks like [y;y']=[a,b] would mean y(0)=a and y'(0)=b, but a first order differential equation should have one initial condition y(t0)=y0.
Thanks Tim, yes, I did a mistake in the equation, its a 2nd order.
How to find the position of an element in a vector without using the find function
2482 Solvers
All your base are belong to us
464 Solvers
1164 Solvers
94 Solvers
542 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!