I keep getting Index exceeds array bounds. for my code and don't know why.

 Accepted Answer

You have a system of 6 differential equations, and a 2-element initial condition vector. You need to provide 6 initial conditions.
That’s one problem. I can’t run the image of your code, so I can’t determine if there are other problems as well.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!