What problem does it solve?
This skill prevents slow, error-prone manual handling of RF S-parameter files by guiding you through loading, inspecting, visualizing, validating, and exporting S-parameter data in MATLAB using RF Toolbox.
Core Features & Use Cases
- Touchstone and sparameters I/O: Load Touchstone files (.s1p, .s2p, .s4p, .snp) into MATLAB’s sparameters object and extract values with rfparam.
- Visualization and reporting: Plot magnitude, phase, and specific S-parameters using rfplot and smithplot, and generate quality-focused diagnostics.
- RF data transformations: Interpolate to new frequency grids with rfinterp1 and re-reference impedances with newref.
- Quality checking and correction: Evaluate passivity and causality with ispassive and iscausal, and enforce passivity with makepassive.
- Export back to Touchstone: Write results using rfwrite with correct formats for round-trip fidelity.
- Use case: You have a measured .s2p dataset and need to (1) plot S11 and S21, (2) check passivity/causality, (3) interpolate onto a simulation frequency grid, and (4) export a clean file for downstream analysis.
Quick Start
Use the skill to load 'default.s2p', extract S21 in dB, plot S11 on a Smith chart, then export the updated figures.