Generates 3GPP-compliant 5G NR downlink and uplink baseband waveforms using MATLAB's 5G Toolbox. Covers PDSCH, PUSCH, PDCCH, PUCCH, SRS, SSBurst, CSI-RS, DM-RS, PT-RS, CORESET, and BWP configuration for test model (TM), FRC, and T&M signal generation.
Ships in wireless-communications. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate standard-compliant 5G NR downlink and uplink waveforms for test and
measurement, simulation, and verification using nrWaveformGenerator.
nrCDLChannel, nrTDLChannelnrPDSCHDecode, nrDLSCHDecoderpre6G*) and 5G or 6G ISAC (sensing with a 5G waveform, TR 38.901 ISAC channel) — use matlab-simulate-6g-system| Need | API |
|---|---|
| Custom DL waveform | nrDLCarrierConfig + nrWaveformGenerator |
| Custom UL waveform | nrULCarrierConfig + nrWaveformGenerator |
| Standard test model (TM) or FRC | hNRReferenceWaveformGenerator |
Do not use primitive-level functions (nrCarrierConfig + nrPDSCH +
nrOFDMModulate) for waveform generation, and do not mix primitive config
objects (nrPDSCHConfig, nrPUSCHConfig, nrCarrierConfig) with
nrWaveformGenerator — use the nrWavegen* objects. nrWaveformGenerator
handles channel multiplexing, power scaling, and OFDM modulation correctly.
Full function catalog, property names, and the incompatible-object table:
references/api-reference.md.
cfg = nrDLCarrierConfig('FR1', 20, 30); % DL: FR1, 20 MHz, 30 kHz SCS
cfg = nrULCarrierConfig('FR1', 20, 15); % UL: FR1, 20 MHz, 15 kHz SCS
For DL, if the requested SCS differs from the default SSB numerology the
constructor adds a dedicated SSB SCS carrier (e.g. nrDLCarrierConfig('FR1', 5, 30)
adds a hidden 15 kHz carrier). Pre-R2026a, or to control the SCS-carrier count
exactly, build manually with nrDLCarrierConfig (no args).
Customize only what the task requires (see the rule below). Set
non-defaults such as cfg.PDSCH{1}.Modulation = '64QAM';. Never overwrite a
constructor-placed value with a different one (e.g. forcing NStartBWP = 0
when the constructor centered it) — that breaks the validated layout.
Generate — validateConfig checks structural rules but does not
catch channel conflicts (overlapping PDSCH/CSI-RS, CSI-RS/SSBurst); always
run the generator, which returns the waveform and the resource-grid info:
[waveform, info] = nrWaveformGenerator(cfg);
What the simplified constructor builds is generation-ready as-is — an
unedited nrDLCarrierConfig(fr, bw, scs) or nrULCarrierConfig(fr, bw, scs)
generates for every FR1/FR2 bandwidth/SCS combination, so do not re-check what
it set. This does not apply to the no-argument nrDLCarrierConfig /
nrULCarrierConfig, whose defaults (15 kHz, Case A SSB, 52-RB PRBSet) must be
resized by hand. One silent caveat: at 3 MHz / 15 kHz the SSB is wider than
the 15-RB carrier, so the PBCH is punctured — this is expected; keep the SSB
(details in Critical Rules). Check the Critical Rules for
whatever you change or build by hand: a no-argument (manual) carrier, an
edited NSizeGrid/BWP/CORESET/PRBSet, a BlockPattern override, an added SCS
carrier or BWP (Point A centering), CSI-RS or PDCCH across BWPs, or 2 codewords
(layers/DM-RS). Those edits cause the most generation failures.
Set every property the task requires — including parameters forced by a
requested feature, even when the prompt never names them — and nothing else. For
example, 2 codewords → NumLayers 5–8 → a DM-RS that supports more than 4 ports
(see Critical Rules); a requested CSI-RS →
CSIRS{1}.Enable = true (off by default). These are required, not over-config.
SSBurst is already enabled by default, so a requested SS burst needs no
Enable line.
Open the reference that matches the task; each has copy-ready, verified code:
NSizeGrid = 11, a
disabled/rehomed SSB, a shrunk CORESET, AL1, and an explicit PRBSet:
references/narrow-band-manual-config.mdhNRReferenceWaveformGenerator(RC, BW, SCS) (e.g. 'DL-FRC-FR1-64QAM',
'NR-FR1-TM1.1'), then generateWaveform + displayResourceGrid. It is not
on the path by default: first make it available with a portable setup
(setupExample('5g/NRTestModelWaveformGenerationExample', ...) + copyfile +
cd, or openExample) — never a hardcoded path, never a made-up namespaced
name. Valid names, portable-setup block, and makeConfigWritable edits:
references/test-models-and-frc.mdinfo, correct property
names): references/api-reference.mdinfo.ResourceGrids(k).ResourceGridBWP (BWP-sized, one per BWP); use ResourceGridInCarrier only for a full-carrier view. The SS burst is a separate grid — when SSBurst.Enable is true and the SS burst is asked for, also plot info.ResourceGridSSBurst.ResourceGrid (it is not part of ResourceGridBWP).m script and open it in the MATLAB editor with edit('scriptName.m')nrDLCarrierConfig('FR1', bw, scs) when possibleDMRSPower (not PowerDMRS), PTRSPower (not PowerPTRS), NSizeGrid (not NRB), ChannelBandwidth (not Bandwidth)SCSCarriers, BandwidthParts, CORESET, PDSCH, PUSCH are cell arrays — use {}; SSBurst is a direct object — use . not {}tiledlayout/nexttile for multi-panel figures; always label axes with units and include figure titlesNSizeGrid, why SSBurst is disabled, why a specific AggregationLevel) so the code explains itselfCopyright 2026 The MathWorks, Inc.
manifest.yaml (opens in a new tab)references/api-reference.md (opens in a new tab)references/critical-rules.md (opens in a new tab)references/documentation-links.md (opens in a new tab)references/multi-bwp-guidance.md (opens in a new tab)references/narrow-band-manual-config.md (opens in a new tab)references/patterns.md (opens in a new tab)references/test-models-and-frc.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5g-nr, waveform-generation, baseband, conformance-testing, rf-test
12 skills in this plugin
/matlab-add-awgnRead BEFORE writing any code that adds Additive White Gaussian Noise (AWGN) to signals and converts between SNR, Eb/No, Es/No, and per-subcarrier SNR for communications simulations, using awgn(), convertSNR(), berawgn(). The default MATLAB patterns for AWGN (e.g., 'measured' option, manual SNR formulas) produce subtly incorrect results. This skill specifies the correct calling conventions, required function usage, and critical anti-patterns that must be avoided./matlab-design-ofdm-systemRead BEFORE writing any code that builds or simulates OFDM systems. The default MATLAB patterns for OFDM (e.g., direct ifft/fft, awgn with 0 dBW power, missing symOffset) produce subtly incorrect results — always use ofdmmod/ofdmdemod instead of direct IFFT/FFT. This skill specifies the correct calling conventions for ofdmmod, ofdmdemod, ofdmChannelResponse, ofdmEqualize, and critical anti-patterns that must be avoided. Use when building OFDM transmitters or receivers, allocating subcarriers and guard bands, inserting pilots, computing SNR for OFDM, configuring fading channels (Rayleigh/Rician), estimating and equalizing channels, implementing timing and frequency synchronization, adding LDPC coding, designing resource grids, or setting up OFDM link simulations./wireless-communications:matlab-generate-5g-waveformfrom wireless-communications
npx claudepluginhub matlab/matlab-agentic-toolkit --plugin wireless-communicationsOther plugins' skills for the same job