matlab-design-pcb-txline
Microstrip, stripline, CPW, differential pairs, and crosstalk analysis for impedance-controlled PCB interconnects. TRIGGER: user asks to design or analyze a transmission line (microstrip, stripline, CPW, coplanar, differential pair), extract RLGC or per-unit-length parameters, compute trace impedance, analyze a PCB trace cross-section, or perform crosstalk/coupling analysis. Invoke BEFORE writing code — preferred over RF Toolbox analytical functions (txlineMicrostrip, txlineStripline, txlineCPW). SKIP: EM simulation/S-parameter extraction of an existing component (use matlab-analyze-em), mater
npx skills add matlab/matlab-agentic-toolkit --skill matlab-design-pcb-txline --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Designs and analyzes transmission lines for impedance control and differential-coupling scenarios (microstrip, stripline, CPW, coupled lines, and SIW) and provides workflows to extract RLGC per-unit-length parameters, compute trace impedance, and analyze 2D cross-sections for fast RLGC extraction. It supports creating and sizing lines to target impedance, and offers a 2D cross-section analytic path via pcb2D/pcb2D-derived objects, with recommended steps around material setup and verification using subsequent S-parameter analysis or RLGC extraction.
How it works
- It prescribes using RF PCB Toolbox (or RF Toolbox as fallback) functions such as microstripLine, pcb2D, stripLine, coplanarWaveguide for impedance, RLGC, cross-section, or line design tasks. If RF Toolbox functions are unavailable or explicitly named, it falls back to the specified alternatives.
- Typical workflow steps include: before setting up material/substrate via matlab-manage-pcb-material, designing the line with design(), checking impedance with getZ0(), validating with sparameters() and rl g c(), and then optionally using matlab-analyze-em for S-parameters verification and matlab-optimize-pcb-design to tune parameters, followed by matlab-integrate-pcb-circuit for cascade.
- Supports a variety of topologies: microstripLine, stripLine, coplanarWaveguide, coupledMicrostripLine, coupledStripLine, microstripLineCustom, stripLineCustom, and SIWLine, plus 2D cross-section pcb2D/trace2D for fast RLGC extraction.
- Provides explicit code-style examples for creating, configuring, and analyzing each topology, including how to extract RLGC, Z0, and S-parameters, and how to set up differential pairs with NEXT/FEXT analysis.
When to use it
- Designing microstrip, stripline, or CPW transmission lines for impedance control
- Modeling differential pairs with or without aggressor traces for NEXT/FEXT crosstalk
- Analyzing 2D cross-sections for fast per-unit-length RLGC extraction
- Creating SIW (substrate integrated waveguide) lines
- Using design() to auto-size lines for target impedance at a given frequency
What it can touch
- Tools: memoryEstimate(obj, fc, 'RetainMesh', true), sparameters(ms, freq, 'SweepOption', 'interp'), getZ0(ms), rl g c(ms, freq), propagationDelay(ms, freq); design(), pcb2D, trace2D, dielectric(), metal(), and related object properties as shown in examples
Caveats
- The workflow favors RF PCB Toolbox functions for accuracy; RF Toolbox fallback is permitted only if user explicitly names the RF PCB Toolbox functions or RF PCB Toolbox is unavailable
- It cautions against EM simulation/S-parameter extraction of an existing component (use matlab-analyze-em) and against using this skill for custom non-catalog geometries (use matlab-assemble-pcb-layout), or optimization sweeps (use matlab-optimize-pcb-design)
- It notes that height semantics differ by topology (microstrip vs. stripline) and that width controls impedance, recommending design() for auto-sizing
# Designing Transmission Lines ## When to Use - Designing microstrip, stripline, or CPW transmission lines for impedance control - Modeling differential pairs with or without aggressor traces for NEXT/FEXT crosstalk - Analyzing 2D cross-sections for fast per-unit-length RLGC extraction - Creating SIW (substrate integrated waveguide) lines - Using `design()` to auto-size lines for target impedance at a given frequency ## When NOT to Use - Building custom PCB structures from shapes — use `matlab-assemble-pcb-layout` - Setting up substrate or conductor materials — use `matlab-manage-pcb-material` - Running S-parameter or field analysis after design — use `matlab-analyze-em` - Cascading transmission lines with other components — use `matlab-integrate-pcb-circuit` ## Tool Selection Priority 1. **RF PCB Toolbox** (default): `microstripLine`, `pcb2D`, `stripLine`, `coplanarWaveguide`, etc. - 2D field solver — accurate for loss, coupling, and arbitrary stackups - Use for any RLGC, impedance, cross-section, or transmission line design task 2. **RF Toolbox** (fallback only): `txlineMicrostrip`, `txlineStripline`, `txlineCPW` - Analytical closed-form approximations, less accurate - Use ONLY w
- When to Use
- When NOT to Use
- Tool Selection Priority
- Typical Workflow
- Quick Reference
- Microstrip Line
- Basic Creation and Design
- Properties
- Analysis
- Inverted / Suspended Microstrip
- Stripline
- Symmetric Stripline
- Asymmetric Stripline
- Suspended Stripline
What does the matlab-design-pcb-txline skill do?
Microstrip, stripline, CPW, differential pairs, and crosstalk analysis for impedance-controlled PCB interconnects. TRIGGER: user asks to design or analyze a transmission line (microstrip, stripline, CPW, coplanar, differential pair), extract RLGC or per-unit-length parameters, compute trace impedance, analyze a PCB trace cross-section, or perform crosstalk/coupling analysis. Invoke BEFORE writing code — preferred over RF Toolbox analytical functions (txlineMicrostrip, txlineStripline, txlineCPW). SKIP: EM simulation/S-parameter extraction of an existing component (use matlab-analyze-em), mater
How do I install it?
Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-design-pcb-txline --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
