matlab-compose-rf-circuit

Compose RF circuits from R/L/C elements, nport blocks, and MATLAB components.

883|109|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-compose-rf-circuit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-compose-rf-circuit
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/rf-and-mixed-signal/matlab-compose-rf-circuit
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-compose-rf-circuit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the time-consuming manual effort of wiring complex RF topologies in MATLAB by providing an idiomatic, SPICE-like workflow for composing circuits from primitive elements, active blocks, and nport S-parameter models.

Core Features & Use Cases

  • Arbitrary RF circuit composition (SPICE-like netlists): Build general-purpose RF circuits by wiring resistors, capacitors, inductors, transmission-line electrical-length stubs, and hierarchical subcircuits via node-based add() calls.
  • Integration of active and measured blocks: Compose complete RF front ends by embedding active elements such as amplifier, modulator, and mixerIMT, and by inserting measured/simulated nport S-parameter blocks as circuit elements.
  • S-parameter extraction and hierarchical reuse: Define external ports with setports, embed reusable subcircuits with setterminals, and extract S-parameters using sparameters() for design iteration.
  • Lumped-to-distributed conversion: Convert lumped L/C designs into distributed implementations using Richards/Kuroda transformations and then optionally realize electrical-length lines into physical transmission lines.

Quick Start

Use the matlab-compose-rf-circuit skill to create a circuit with primitive R/L/C and an nport block, wire everything with add() and setports(), and extract S-parameters over your frequency range.

Frequently Asked Questions about matlab-compose-rf-circuit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compose RF circuits and compute S-parameters in MATLAB?

To compose RF circuits in MATLAB, use a SPICE-like workflow to wire primitive R/L/C elements, active components, and nport S-parameter blocks via node-based add() calls, define external ports with setports, and extract S-parameters using sparameters() over a frequency range.

Can I integrate measured S-parameter data into a MATLAB RF circuit simulation?

Yes, you can integrate measured S-parameter data into an RF circuit simulation by inserting simulated or measured nport S-parameter blocks as circuit elements alongside active components like amplifiers and mixers using add() calls.

How do I convert lumped L/C RF filters to distributed transmission lines?

Convert lumped L/C RF filters to distributed implementations by applying Richards and Kuroda transformations to realize electrical-length transmission line stubs, which can then be realized into physical transmission lines.

Does MATLAB support hierarchical subcircuits for RF network analysis?

Yes, MATLAB supports hierarchical subcircuits for RF network analysis by allowing you to define reusable subnetworks with setterminals, wire them into larger topologies using add(), and extract the overall S-parameters with setports and sparameters().

What is the best way to build SPICE-like netlists for RF topologies in MATLAB?

The best way to build SPICE-like netlists for RF topologies in MATLAB is using node-based add() calls to connect resistors, capacitors, inductors, and transmission-line stubs into arbitrary circuit structures, enabling deterministic RF Toolbox network analysis.