RandSC:

Path: SpacecraftEstimation/StellarCatalog

% Generates a random star catalog in star matrix format.
 If mVM or sVM are not input it will generate visual magnitudes using
 statistics derived from the FK5 catalog. Visual magnitude is rounded to 2
 decimal places.
------------------------------------------------------------------------
   Form:
   [starMatrix, catalog] = RandSC( n, d, mVM, sVM )
------------------------------------------------------------------------

   ------
   Inputs
   ------
   n               (1,1)    Number of stars
   d               (1,1)    Digits accuracy
   mVM             (1,1)    Mean visual magnitude
   sVM             (1,1)    Standard deviation visual magnitude

   -------
   Outputs
   -------
   starMatrix      (4,:)    Catalog [VisualMagnitude;UnitVector]
   catalog         (.)      Catalog data structure
                            .vM (1,:) Visual magnitude  (rad)
                            .rA (1,:) Right Ascension  (rad)
                            .dec (1,:) Declination (rad)

------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/U2RADec

Back to the SpacecraftEstimation Module page