<< CL_oe_convert Coordinates and frames CL_oe_kep2cir >>

CelestLab >> Coordinates and frames > CL_oe_kep2car

CL_oe_kep2car

Classical Keplerian to cartesian orbital elements

Calling Sequence

[pos, vel, jacob] = CL_oe_kep2car(kep [, mu])

Description

Parameters

kep:

Classical Keplerian orbital elements [sma;ecc;inc;pom;gom;anm] [m,rad] (6xN)

mu :

(optional) Gravitational constant. [m^3/s^2] (default value is %CL_mu)

pos:

Position vector [x;y;z] [m] (3xN)

vel:

Velocity vector [vx;vy;vz] [m/s] (3xN)

jacob:

(optional) Transformation jacobian (See Orbital elements for more details) (6x6xN)

Authors

See also

Examples

// // Example 1
kep = [7000.e3; 0.1; 0.5; 1; 2; 3];
[pos, vel] = CL_oe_kep2car(kep);

// Example 2
kep = [7000.e3; 0.1; 0.5; 1; 2; 3];
[pos, vel, jacob1] = CL_oe_kep2car(kep);
[kep2, jacob2] = CL_oe_car2kep(pos, vel);
kep2 - kep // => zero
jacob2 * jacob1 // => identity

Report an issue
<< CL_oe_convert Coordinates and frames CL_oe_kep2cir >>