Main Content

resweep

R2026b

Center frequency and bandwidth scaling of measured filter

Since R2026b

    Description

    sparam = resweep(object,fcnew) evaluates measuredFilter object response at a new center frequency.

    sparam = resweep(object,fcnew,BandWidth=bwnew) evaluates a measured filter response at a new center frequency and new bandwidth.

    example

    Examples

    collapse all

    Create a measuredFilter object by importing the measured data file, and plot its s parameters.

    S_measured = sparameters(fullfile(matlabroot,'toolbox','rfpcb',...
        'rfpcb','rfpcbfilterfiles','FILTER_8.s2p'));
    rfplot(S_measured); hold on
    obj = measuredFilter(...
        Sparameters=S_measured,BandWidth=9.601e6,...
        CenterFrequency=2114.6528e6,FilterOrder=8);
    S_calc = sparameters(obj);
    rfplot(S_calc,'--')
    hold

    Figure contains an axes object. The axes object with xlabel Frequency (GHz), ylabel Magnitude (dB) contains 8 objects of type line. These objects represent dB(S_{11}), dB(S_{21}), dB(S_{12}), dB(S_{22}).

    Current plot released
    
    sparam = resweep(obj,2120e6,BandWidth=10e6);
    rfplot(sparam,'--')

    Figure contains an axes object. The axes object with xlabel Frequency (GHz), ylabel Magnitude (dB) contains 4 objects of type line. These objects represent dB(S_{11}), dB(S_{21}), dB(S_{12}), dB(S_{22}).

    Input Arguments

    collapse all

    Measured filter object contains the original s parameter data, center frequency, bandwidth, and filter order.

    Data Types: string

    New center frequency for measured filter evaluation, specified as a scalar or vector in Hz. Each new frequency value must lie within ±20 percent of original center frequency stored in the measured filter object.

    Data Types: double

    New bandwidth for measured filter evaluation, specified as a scalar or vector in Hz. Each new bandwidth value must lie within ±20 percent of original bandwidth stored in the measured filter object. If BandWidth is a scalar and fcnew is a vector, the new bandwidth is applied to all center frequency evaluations. If Bandwidth and fcnew are both vectors they must have the same length and are paired element-wise for evaluation.

    Data Types: double

    Output Arguments

    collapse all

    Predicted s parameters at each new filter center frequency and bandwidth operating point.

    Version History

    Introduced in R2026b

    See Also

    Functions

    Objects