Skip to content

rfinterp1

rf · scripts/rf/rfinterp1.m

: out = rfinterp1 (netw, newfreq)
: out = rfinterp1 (netw, newfreq, method)

Interpolate network-parameter data at new frequencies (MATLAB R2026a).

netw is an sparameters (or y/z/abcd) struct with Parameters and Frequencies. Each (i,j) complex entry is interpolated with interp1 (real/imag separately).

Default: frequencies outside netw.Frequencies become NaN. 'extrap' holds the last page flat above the band, and below the first frequency uses Hermitian pairing at -f1 so values approach real at DC. 'rational' requires the rational object (RF Toolbox); without it this tip errors with rf:rfinterp1:RationalUnavailable.