Batch propagation in matlab

MATLAB-specific help discussions.

Batch propagation in matlab

Postby prconrad » Tue Aug 12, 2008 7:06 pm

This is an evolution of code provided by Edwin to do propagation in GMAT from MATLAB. The function GMAT_EphemGenFunc_03 takes a series of matlab structures defining the GMAT propagation options desired, including force models and the output coordinates. GMAT_EphemStandardParam is a script which takes the preceding lines to finish creating the inputs and defines the GMAT options desired. The script is only a sample of the options that are possible, but the creation of the Times variable is necessary for the following function call.

Here's a sample call:
Code: Select all
X0 = [9000 0 3000 0 7.53 2;   % Initial Cartesian State [X Y Z VX VY VZ] Pos in km and Vel in km/s
        9000 0 3000 0 7.53 1.8;
        9000 0 3000 0 7.53 1.6;
        9000 0 3000 0 7.53 1.4];
runTrans = ones(size(X0,1),1);

startTimeMJD = runTrans*[53536];
runTimeDays = runTrans*[.2];
reportingSteps = runTrans*[30];


[Ephem] = GMAT_EphemGenFunc_03(X0, Times, Spacecraft, ForceModel, Propagator, TempEphemLoc, reportFlag, CoordinateSystem);
(3.52 KiB) Downloaded 288 times
(9.01 KiB) Downloaded 320 times
Posts: 1
Joined: Tue Aug 12, 2008 6:53 pm

Re: Batch propagation in matlab

Postby space_egd » Mon Aug 18, 2008 3:26 pm

Thanks for posting this version. I'll try and check it out sometime this week.

Related Topic:
GMAT Ephem Generation from Matlab
Posts: 357
Joined: Sun Jun 08, 2008 9:02 pm
Location: MD

Return to MATLAB Help

Who is online

Users browsing this forum: No registered users and 1 guest