Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 27-Oct-2026 20:06:26 pendulum_control_ode_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 Test pendulum_control_ode(). energy_test(): Test energy(), which reports the energy required to move the pendulum from angle 0 to angle b. Graphics saved as "energy.png" pendulum_parameters_test(): Test pendulum_parameters(), which stores, updates, and retrieves parameter values for the pendulum control ODE. Current internal parameter values: bc = 0.7 c = 0.5 forceangle = 1.0472 forcedflag = 2 g = 9.81 l = 1 linearflag = 0 m = 1 mypenalty = 0.89168 t0 = 1 theta10 = 1.0472 tstop = 25 y0 = [ 0.628319; 1.0472 ] Updated internal parameter values: bc = 0.5 c = 0.25 forceangle = 2.35619 forcedflag = 1 g = 4.9 l = 1.5 linearflag = 1 m = 2.5 mypenalty = 100 t0 = 1 theta10 = 1.0472 tstop = 25 y0 = [ 0.628319; 1.0472 ] pendulum_plots: Plot various versions of pendulum problem with no applied driving force. Graphics saved as "pendulum_plots.png" pendulum_plots_driven(): Solve driven pendulum with various forced angles Graphics saved as "pendulum_plots_driven.png" pendulum_shooting(): Use shooting to solve a pendulum boundary value problem. Graphics saved as "pendulum_shooting.png" pendulum_finite_difference(): Use finite differences to solve a pendulum boundary value problem. Graphics saved as "pendulum_finite_difference.png" pendulum_control(): Control the pendulum to achieve a desired deflection. bc = -1.7859 Graphics saved as "pendulum_control.png" mypenalty = 0.000000. If nonzero, optimization did not find a feasible point. Damped Driven Pendulum with Optimal Control Parameter bc = -1.785899/sec; upper bound = 0.500000 Total energy consumed = 43.140234 Joules pendulum_control_ode_test(): Normal end of execution. 27-Oct-2026 20:06:38