Simple pendulum sinusoidal graph using Euler-Cromer

4 views (last 30 days)
I need to show how the Euler method is unstable in comparison to the Euler-Cromer method by showing how a pendulum will continue to gain energy. This is my first coding class so I am having trouble coming up with how to do this.

Answers (1)

Max M
Max M on 25 Feb 2015
i am mostly having trouble with the for loop

Products

Community Treasure Hunt

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

Start Hunting!