Main Content

tdr.automaticPortOrdering

Display port ordering of S-parameter data

Since R2025a

    Description

    portOrder = tdr.automaticPortOrdering(sparam) displays the port order in the sparameters object sparam.

    example

    Examples

    collapse all

    Create a S-parameter object with a 4-port Touchstone file.

    sparam = sparameters('default.s4p');

    Determine the port order of the S-parameter data. The automatic port ordering function identifies single-ended ports as differential pairs. In this example port 1 and 3 as a first differential pair and port 2 and port 4 identified as a second differential pair.

    portOrder = tdr.automaticPortOrdering(sparam)
    portOrder = 1×4
    
         1     3     2     4
    
    

    Input Arguments

    collapse all

    N-port S-parameters, specified as either an sparameters object.

    Output Arguments

    collapse all

    Port order in S-parameter data, returned as a vector.

    Version History

    Introduced in R2025a