Main Content

computeAMPMTable

Compute AM/AM-AM/PM table representation from RF budget object

Since R2024b

    Description

    Use the computeAMPMTable function to compute the representation of an AM/AM-AM/PM table from an rfbudget object. The function returns an M-by-3 matrix, of real values, where the first, second, and third columns represent input power in dBm, output power in dBm, and phase change in degrees, respectively.

    ampmtab = computeAMPMTable(rfb) computes the AM/AM-AM/PM table from the RF budget object specified in rfb.

    Note

    This syntax automatically selects the input power from the RF budget object.

    example

    ampmtab = computeAMPMTable(rfb,powerIn) computes the AM/AM-AM/PM table by using the input power specified in powerIn.

    Examples

    collapse all

    Create an amplifier with a gain of 4 dB.

    a = amplifier(Gain=4);

    Create a modulator with an OIP3 of 13 dBm.

    m = modulator(OIP3=13);

    Create an N-port element using passive.s2p.

    n = nport('passive.s2p');

    Create an RF element with a gain of 10 dB.

    r = rfelement(Gain=10);

    Compute the RF budget for the RF elements at an input frequency of 2.1 GHz, an available input power of –30 dBm, and a bandwidth of 10 MHz.

    b = rfbudget([a m r n],2.1e9,-30,10e6);

    Compute the AM/AM-AM/PM table from the RF budget object.

    computeAMPMTable(b)
    ans = 3×3
    
      -33.0000  -23.5995   12.2878
      -30.0000  -20.5995   12.2878
      -27.0000  -17.5995   12.2878
    
    

    Input Arguments

    collapse all

    RF budget object, specified as an rfbudget object.

    Input power for the AM/AM-AM/PM lookup table, specified as a real finite vector in dBm.

    Output Arguments

    collapse all

    Function handle, returned as a character vector.

    Version History

    Introduced in R2024b