matlab-analyze-em

Compute S-parameters for RF PCB electromagnetic models and visualize fields.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you analyze the electromagnetic (EM) performance of RF PCB components by computing S-parameters and visualizing E/H fields and surface effects to validate designs and select appropriate solver settings.

Core Features & Use Cases

  • S-parameter extraction for RF PCB components: Compute insertion/return loss and multi-port S-parameters from MoM or FEM-backed models.
  • Solver selection and control: Choose between MoM (default) and FEM via pcbComponent.SolverType, including FEM boundary condition setup (e.g., absorbing vs PML).
  • Performance insight via visualization: Visualize E/H fields, surface currents, and charge distributions to diagnose why specs are met or missed.
  • Accuracy vs speed tooling: Use interpolating sweeps (interp / interpWithGrad), frequencySweep-driven controlled interpolation, and mesh control (MaxEdgeLength plus memoryEstimate guardrails).
  • Behavioral S-parameters for fast estimates: Use Behavioral=true for quick analytic S-parameter exploration where applicable (not for fields/currents/charge).
  • Typical workflow fit: After material setup and component/layout creation, run this Skill to validate EM performance before optimization, circuit integration, and layout export.

Quick Start

Ask the agent to compute and plot S-parameters (and optionally fields/currents) for your RF PCB component over your target frequency band, using interpolating sweep and mesh/memory checks as needed.

Frequently Asked Questions about matlab-analyze-em

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

FAQPage Schema
How do I compute S-parameters for an RF PCB electromagnetic model?

To compute S-parameters for an RF PCB model, use the sparameters function with a SweepOption like interp or frequencySweep to extract insertion and return loss across a target frequency band.

When should I use FEM vs MoM solver for RF PCB electromagnetic simulation?

Choose MoM for standard RF PCB simulations, or switch to FEM via pcbComponent.SolverType when you need specific boundary conditions like absorbing or PML for complex electromagnetic structures.

Can I speed up S-parameter sweeps without losing accuracy in RF PCB analysis?

You can accelerate S-parameter sweeps using interpolating sweep options such as interp or interpWithGrad, while using mesh control and memoryEstimate guardrails to maintain accuracy.

How do I visualize E/H fields and surface currents on an RF PCB component?

Visualizing E/H fields, surface currents, and charge distributions on RF PCB components helps diagnose why specifications are met or missed after computing S-parameters.

What is the Behavioral S-parameter option used for in RF PCB simulation?

Setting Behavioral=true provides quick analytic S-parameter exploration for fast estimates, but it does not compute fields, currents, or charge distributions.

How do I validate mesh density before solving an RF PCB electromagnetic model?

Use meshEstimate-driven pre-solve validation combined with MaxEdgeLength control to manage the accuracy-speed tradeoff and prevent memory issues in mesh-dense PCB structures.