Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/wireless-communications/matlab-generate-gnss-waveform

matlab-generate-gnss-waveform

Verified

Generate GNSS baseband waveforms (GPS, Galileo, NavIC) with physically realistic or user-specified channel impairments using the Satellite Communications Toolbox. Use when generating GPS L1 C/A, L1C, L2C, L5, Galileo E1, E1C, E5a, E5b, E5, or NavIC L5, S, L1 signals. Covers gpsWaveformGenerator, galileoWaveformGenerator, satelliteScenario, Doppler/delay from orbital dynamics or custom values, navigation data encoding with ephemeris, and RINEX integration. Triggers on: GPS waveform, Galileo waveform, NavIC waveform, GNSS signal, satellite scenario, GNSS simulation, receiver test signal, baseband GNSS, L-band satellite signal, navigation signal generation.

references/helper-files.md

View on GitHub
# Prerequisites: Helper Files

Copy helper files from MathWorks examples into your project folder to
avoid fragile `openExample` + `addpath` session dependencies.

## How to copy helpers

```matlab
% 1. Open the example (creates a temporary folder with helpers)
openExample('satcom/GalileoWaveformGenerationExample');
exFolder = pwd;

% 2. Copy all helpers and data files to your project
copyfile(fullfile(exFolder, 'Helper*.m'), projectFolder);
copyfile(fullfile(exFolder, '*.xml'), projectFolder);
```

Repeat for any additional example listed below.

## Galileo

| Source Example | Files to Copy |
|----------------|---------------|
| `satcom/GalileoWaveformGenerationExample` | `HelperAddGalileoSatellitesToScenario.m`, `HelperGNSSChannel.m`, `HelperGPSConvertTime.m`, `HelperGalileoNavigationData.m`, `HelperGalileoCodes.m`, `galileoAlmanac.xml` |
| `shared_nav_satcom/GalileoGNSSReceiverPositioningExample` | `HelperGalileoNavigationData.m` (if not already copied above) |

## GPS

| Source Example | Files to Copy |
|----------------|---------------|
| `satcom/GNSSSignalTransmissionUsingSDRExample` | `HelperGNSSChannel.m`, `HelperGPSAlmanac2Config.m`, `HelperGPSNAVDataEncode.m`, `HelperGPSConvertTime.m`, `gpsAlmanac.txt` |
| `shared_nav_satcom/EndtoEndGPSLNAVReceiverExample` | `HelperGPSRINEX2Config.m`, `HelperGPSNavigationConfig.m` |

## NavIC

| Source Example | Files to Copy |
|----------------|---------------|
| `satcom/NavICWaveformGenerationExample` | `HelperNavICBBWaveform.m`, `HelperNavICDataEncode.m` |
| `shared_nav_satcom/EndtoEndNavICConstellationSimulationExample` | `HelperGNSSChannel.m`, `HelperAddSatellite.m`, `HelperNavICRINEX2Config.m`, `HelperNavICConfig.m`, `HelperGNSSConvertTime.m` |

## RINEX Files Available on the MATLAB Path

These RINEX navigation files ship with MathWorks toolbox examples and are
always available via `which()` after opening the relevant example:

| File | Constellation | Source Example | Epoch |
|------|--------------|----------------|-------|
| `IITK00IND_R_20243400400_01H_MN.rnx` | NavIC | `shared_nav_satcom/EndtoEndNavICConstellationSimulationExample` | 05-Dec-2024 |
| `GODS00USA_R_20211750000_01D_GN.rnx` | GPS | `shared_nav_satcom/EndtoEndGPSLNAVReceiverExample` | 24-Jun-2021 |

**Usage:**
```matlab
% Open example to put files on path (one-time per session)
openExample('shared_nav_satcom/EndtoEndNavICConstellationSimulationExample');
close all;

% Now accessible by name
rinexData = rinexread('IITK00IND_R_20243400400_01H_MN.rnx');
```

**Important:** Set `startTime` to match the RINEX file epoch. Using a time
far from the epoch produces all-NaN latency (zero visible satellites).

## Notes

- Copy all files for your constellation upfront -- avoids path issues later.
- If a helper exists in multiple examples, prefer the waveform-specific one.
- **These helpers can have bugs.** Inspect helper source before assuming
  your code is wrong.

Copyright 2026 The MathWorks, Inc.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall