Main Content

galileoCodes

Generate ranging codes for Galileo

Since R2026a

    Description

    [primarycode,secondarycode] = galileoCodes(svid,signaltype) generates primary and secondary ranging codes for each satellite specified in svid for the corresponding Galileo signal type specified in signaltype. The function generates ranging codes as per the Galileo standard [1].

    example

    Examples

    collapse all

    Generate ranging codes for two Galileo satellites over E6c band.

    Specify the satellite IDs and the signal type.

    svid = [3; 15];
    signaltype = "e6c";

    Generate the corresponding primary and secondary codes for both the satellites.

    [primarycode,secondarycode] = galileoCodes(svid,signaltype);
    size(primarycode)
    ans = 1×2
    
            5115           2
    
    
    size(secondarycode)
    ans = 1×2
    
       100     2
    
    

    Input Arguments

    collapse all

    Satellite vehicle identifier number (SVID), specified as one of these options.

    • Integer in the range [1, 50] — Specifies an SVID for a single satellite.

    • Vector of integers in the range [1, 50] — Specifies SVIDs for multiple satellites.

    Data Types: double

    Type of signal to generate, specified as "E1B", "E1C", "E5aI", "E5aQ", "E5bI", "E5bQ", "E6B", or "E6C". The input is not case-sensitive.

    Data Types: char | string

    Output Arguments

    collapse all

    Primary ranging codes, returned as a binary-valued matrix of size m-by-n, where n is the number of SVIDs specified in the svid argument. The value of m depends on the signaltype argument.

    signaltype ValueValue of m
    "E1B" or "E1C"4092
    "E5aI", "E5aQ", "E5bI", or "E5bQ"10230
    "E6B" or "E6C"5115

    Data Types: logical

    Secondary ranging codes, returned as a binary-valued matrix of size m-by-n, where n is the number of SVIDs specified in the svid argument. The value of m depends on the signaltype argument.

    signaltype ValueValue of m
    "E1B" or "E6B"0
    "E1C"25
    "E5aI"20
    "E5aQ", "E5bQ", or "E6C"100
    "E5bI"4

    Data Types: logical

    References

    [1] European GNSS Supervisory Authority. Galileo Open Service: Signal in Space Interface Control Document (OS SIS ICD) : Issue 2.1. Publications Office, 2023. https://data.europa.eu/doi/10.2878/39727.

    [2] Galileo E6-B/C Codes Technical Note. Issue 1. January 2019. https://www.gsc-europa.eu/sites/default/files/sites/all/files/E6BC_SIS_Technical_Note.pdf.

    Extended Capabilities

    expand all

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2026a