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.
Extract leading non-zero digit
1213 Solvers
495 Solvers
Determine Whether an array is empty
649 Solvers
Getting the indices from a vector
3432 Solvers
Arrange vector in ascending order
626 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!