Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/rf-and-mixed-signal/matlab-model-rf

matlab-model-rf

Verified

RF Toolbox and RF Blockset in MATLAB -- S-parameter I/O, network conversions (S/Z/Y/ABCD/T/H/G, mixed-mode), cascade/de-embedding, rfbudget analysis, circuit composition, matching networks, amplifier stability, mixer spurs, rational fitting, SI channels, baseband processing, Circuit Envelope simulation. Trigger: sparameters, Touchstone, .s2p, .s4p, rfplot, smithplot, rfparam, rfwrite, zparameters, yparameters, abcdparameters, s2sdd, cascadesparams, deembedsparams, rfbudget, noise figure, OIP3, IIP3, amplifier, modulator, nport, rffilter, attenuator, seriesRLC, shuntRLC, lcladder, txline, circuit, setports, clone, matchingnetwork, stabilityk, stabilitymu, powergain, gammams, gammaml, mixerIMT, OpenIF, rational, rationalfit, stepresp, txlineWRLGC, rf.Amplifier, rf.Mixer, rf.Filter, rf.Sparameter, rfsystem, RF Blockset.

reference/amplifier-models.md

View on GitHub
# Amplifier Nonlinear Models and Compression

Reference material for the `amplifier` element's nonlinear model options and compression parameter conventions.

## Nonlinear Models

| Model | Description | Use Case |
|-------|-------------|----------|
| `'poly'` (default) | Higher-order polynomial using ALL set compression params (e.g., OIP3, OP1dB, OPsat) | System budgets with compression |
| `'cubic'` | 3rd-order polynomial from ONE param selected by `Nonlinearity` | Legacy or single-param characterization |
| `'ampm'` | AM/AM and AM/PM table-based | Detailed compression analysis |
| `'sparam'` | S-parameter file data | Measured device characterization |

### `'poly'` Model (Default)

Set whichever compression params you have -- the model uses all of them to fit a higher-order polynomial:

```matlab
pa = amplifier('Gain', 30, 'NF', 5, 'OIP3', 40, ...
    'OP1dB', 28, 'OPsat', 35, 'Name', 'PA');
```

Do NOT set `Nonlinearity` for poly -- it is irrelevant and emits a warning.

### `'cubic'` Model

Uses a single compression parameter selected by the `Nonlinearity` property for a 3rd-order fit:

```matlab
amp = amplifier('Gain', 15, 'NF', 2, 'Model', 'cubic', ...
    'Nonlinearity', 'OIP3', 'OIP3', 35, 'Name', 'Amp');
```

Valid `Nonlinearity` values: `'OIP3'` (default), `'IP1dB'`, `'OP1dB'`, `'OPsat'`, `'IPsat'`.

Extra params are stored but ignored by the cubic model.

## Compression Parameters -- Input vs Output

| Parameter | Related Through | Convention |
|-----------|----------------|------------|
| OIP3 / IIP3 | OIP3 = IIP3 + Gain | Set either one |
| OP1dB / IP1dB | OP1dB = IP1dB + Gain - 1 | Set either one |
| OPsat / IPsat | Independent (not related through gain) | Both can be set |

- **Amplifier** datasheets typically specify output-referred: OIP3, OP1dB, OPsat
- **Mixer/modulator** datasheets typically specify input-referred: IIP3, IP1dB, IPsat
- It is rare to set both IPsat and OPsat -- parameters are usually all from the same reference plane

## Compression Properties Availability

`IP1dB`, `OP1dB`, `IPsat`, and `OPsat` are available on `amplifier`, `modulator`, and `rfelement` -- but NOT on `attenuator`, `phaseshift`, `rffilter`, `nport`, or `rfantenna` (passive/fixed elements).

```matlab
pa = amplifier('Gain', 30, 'NF', 5, 'OIP3', 40, ...
    'IP1dB', 10, 'OPsat', 35, 'Name', 'PA');
% OP1dB auto-computed: IP1dB + Gain - 1 ~ 39 dBm
```

Setting `IP1dB` automatically computes `OP1dB` (and vice versa). `IPsat`/`OPsat` are independent. All default to `Inf` (no compression).

## From S-Parameter File

```matlab
ampFromFile = amplifier('FileName', 'default.s2p', 'Name', 'LNAMeasured');
% Sets Model='sparam', UseNetworkData=true
% Gain comes from S-parameter data, not the Gain property
s = ampFromFile.NetworkData;     % sparameters object
```

----

Copyright 2026 The MathWorks, Inc.

----
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall