MagneticControlSimWithPower:

Path: SC/MagneticControl

% Demonstrates magnetic control and power profiles.
 Six DOF simulation with point mass orbit, rigid body dynamics, and the
 magnetic torque handled explicitly in the RHS. Satellite is modeled
 with three magnetic torquers and four solar panels.
 -------------------------------------------------------------------------
  See also MagField and FRBWithMag, QForm, Constant, NPlot, Plot2D, 
  Plot3D, PrintFig, TimeGUI, TimeLabl, RK4, Date2JD, OrbRate, El2RV, 
  PltOrbit, Eclipse, SunV1
 -------------------------------------------------------------------------
%
--------------------------------------------------------------------------
   Copyright (c) 1995-2004, 2008, 2016 Princeton Satellite Systems, Inc.
   All rights reserved.
--------------------------------------------------------------------------
   2016.1 Switch to newer IGRF11 model (from 1995 data) for the Earth. Also
   change RHS to a function handle.
--------------------------------------------------------------------------