matlab/matlab-agentic-toolkit / skills-catalog/rf-and-mixed-signal/matlab-model-rf
matlab-model-rf
VerifiedRF Toolbox and RF Blockset in MATLAB -- S-parameter I/O, network conversions (S/Z/Y/ABCD/T/H/G, mixed-mode), cascade/de-embedding, rfbudget analysis, circuit composition, matching networks, amplifier stability, mixer spurs, rational fitting, SI channels, baseband processing, Circuit Envelope simulation. Trigger: sparameters, Touchstone, .s2p, .s4p, rfplot, smithplot, rfparam, rfwrite, zparameters, yparameters, abcdparameters, s2sdd, cascadesparams, deembedsparams, rfbudget, noise figure, OIP3, IIP3, amplifier, modulator, nport, rffilter, attenuator, seriesRLC, shuntRLC, lcladder, txline, circuit, setports, clone, matchingnetwork, stabilityk, stabilitymu, powergain, gammams, gammaml, mixerIMT, OpenIF, rational, rationalfit, stepresp, txlineWRLGC, rf.Amplifier, rf.Mixer, rf.Filter, rf.Sparameter, rfsystem, RF Blockset.
reference/transmission-lines.md
View on GitHub# Transmission Line Elements
Reference material for all rfbudget-compatible transmission line objects.
All transmission line objects are 2-port and rfbudget-compatible. They all use `LineLength` for physical length (not `Length`).
## Delay Lines (Ideal)
```matlab
% Lossless -- constructor accepts Z0, TimeDelay, Name only (NOT LineLength)
tl = txlineDelayLossless('Z0', 50, 'TimeDelay', 33e-12);
% Lossy -- adds Resistance; accepts LineLength at construction
tl = txlineDelayLossy('Z0', 50, 'TimeDelay', 33e-12, 'Resistance', 0.5);
```
**Gotcha:** `txlineDelayLossless` constructor only accepts `Z0`, `TimeDelay`, and `Name`. Setting `LineLength` post-construction is allowed but does NOT affect the electrical delay. Physical txlines (Microstrip, Coaxial, RLCGLine, etc.) all accept `LineLength` at construction.
## Microstrip
```matlab
mstrip = txlineMicrostrip(Name='MS1');
mstrip.LineLength = 10e-3; % 10 mm
mstrip.Width = 1.5e-3; % 1.5 mm
mstrip.Height = 0.8e-3; % Substrate height
mstrip.EpsilonR = 4.4; % FR-4
```
## Coaxial
```matlab
coax = txlineCoaxial(Name='Coax1');
coax.LineLength = 0.1; % 100 mm
coax.InnerRadius = 0.5e-3;
coax.OuterRadius = 2.3e-3;
coax.EpsilonR = 2.1; % PTFE
```
## Other Physical Lines
| Object | Geometry |
|--------|----------|
| `txlineCPW` | Coplanar waveguide |
| `txlineStripline` | Stripline (embedded trace) |
| `txlineParallelPlate` | Parallel plate |
| `txlineTwoWire` | Two-wire (balanced) |
All use `LineLength` and geometric/material properties.
## RLCG Lines (Generic Models)
Two RLCG transmission line objects exist -- use the one matching your data:
| Object | Parameter Model | Use Case |
|--------|----------------|----------|
| `txlineRLCGLine` | Scalar R, L, C, G per unit length | Frequency-independent RLCG |
| `txlineWRLGC` | W-element: Lo, Co, Ro, Rs, Gd, Cd | Frequency-dependent skin/dielectric loss (R2026a) |
```matlab
% txlineRLCGLine -- frequency-independent RLCG
rlcg = txlineRLCGLine(Name='RLCG1');
rlcg.LineLength = 0.05;
rlcg.R = 0.5; % Ohm/m
rlcg.L = 250e-9; % H/m
rlcg.C = 100e-12; % F/m
rlcg.G = 0; % S/m
% txlineWRLGC -- frequency-dependent W-element model
tl = txlineWRLGC('Lo', 350e-9, 'Co', 130e-12, 'Ro', 2, ...
'Rs', 5e-4, 'Gd', 1e-11, 'LineLength', 0.1, 'Name', 'WLine');
% For multi-conductor (coupled pair): set Nline=2 with matrix RLCG values
```
## Table-Based Model
`txlineWtable` accepts frequency-dependent R, L, G, C vectors for arbitrary loss profiles.
## Gotchas
- **`LineLength` not `Length`** -- all transmission line objects use `LineLength` for physical length.
- There is no `rlcgLine` object -- always use `txlineRLCGLine` or `txlineWRLGC`.
- `txlineDelayLossless` ignores `LineLength` -- delay is set solely by `TimeDelay`.
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |