matlab-write-pcb-layout

Export MATLAB pcbComponent RF designs to Gerber and drill files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents RF PCB designers from manually figuring out how to export a MATLAB pcbComponent into correct Gerber/drill manufacturing outputs with the right connector footprints and fabrication-house formatting.

Core Features & Use Cases

  • Gerber manufacturing export: Converts a pcbComponent (or pcbStack) into a complete manufacturing package (Gerber, drill, outline) using gerberWrite and a PCB writer service.
  • RF connector placement & formatting: Selects and configures RF connectors (e.g., SMA variants, edge-launch SMA, MMCX, U.FL/IPX, semi-rigid/coax) so feed locations and pad footprints match your design intent.
  • Fab service writer customization: Uses PCBServices writers (e.g., OSH Park, Seeed, Advanced Circuits) and supports output configuration such as units and filename.
  • Workflow guardrails: Guides users to avoid common pitfalls like exporting the wrong object type (catalog vs pcbComponent), passing connectors incorrectly, or misconfiguring shielded connector simulation settings.

Quick Start

Use matlab-write-pcb-layout to export your designed pcbComponent to OSH Park Gerber files with SMA connectors by using gerberWrite before writing any export code.

Frequently Asked Questions about matlab-write-pcb-layout

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

FAQPage Schema
How do I export a MATLAB pcbComponent to Gerber files for manufacturing?

To export a MATLAB pcbComponent to Gerber files, use the gerberWrite function with a PCBServices writer to generate complete manufacturing outputs including drill and outline files formatted for your specific fabrication house.

Can I export RF PCB designs with SMA connector footprints from MATLAB?

You can export RF PCB designs with SMA connector footprints from MATLAB by configuring an RFConnector cell array within the gerberWrite workflow, ensuring edge-launch or SMA pad placements match your design's feed locations.

Does gerberWrite support fab house formatting for OSH Park or Seeed?

gerberWrite supports fab house formatting for services like OSH Park, Seeed, and Advanced Circuits by using PCBServices writers to apply service-specific naming conventions, layer configurations, and output units.

Why does my MATLAB Gerber export fail when using a catalog object instead of pcbComponent?

Gerber export fails with catalog objects because gerberWrite requires a pcbComponent or pcbStack object as input to correctly process the layout, ensuring the design data contains the necessary physical stackup and geometry information.

How do I configure RF shielding when exporting an RF PCB to Gerber in MATLAB?

Configure RF shielding during PCB Gerber export by correctly setting the shielded connector simulation parameters in the connector cell array before calling gerberWrite to ensure the manufacturing files include proper shielding geometry.