sobj = sparameters(___,Name=Value)
calculates S-parameters using one or more name-value arguments in addition to any of the
input argument combinations in previous syntaxes
Input object, specified as a RF PCB object. You can specify either a PCB component,
a microstrip bend, or a trace. For complete list of PCB components, microstrip bends,
and traces, see PCB Components Catalog and Custom Geometry and PCB Fabrication.
data — S-parameter data array of complex numbers
S-parameter data, specified as an array of complex numbers of the size
N-by-N-by-K, where
K represents number of frequency points.
freq — S-parameter frequency scalar | vector
S-parameter frequencies, specified as a scalar or vector of positive real numbers in
the ascending order.
Z0 — Reference impedance 50 (default) | positive real scalar
Reference impedance in ohms, specified as a positive real scalar.
filename — Name of Touchstone file character vector | string scalar
Name of the Touchstone file containing network parameter data, specified as a
character vector or string scalar. If the file is in the current folder or in a folder
on the MATLAB® path, specify the file name. If the file is not in the current folder or
in a folder on the MATLAB path, then specify the full or relative path name.
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and encloseNamein quotes.
The sparameters function does not support the behavioral model
for objects with unequal widths such as bendRightAngle,
bendCurved, and bendMitered objects.
Before using the sparameters function to calculate
S-parameters for bends and traces, convert bends and traces to PCB
components using the pcbComponent function.
The sparameters function does not support using the
behavioral model argument for:
Objects with unequal widths like bendRightAngle,
bendCurved, and bendMitered
S-parameters, returned as an object with the following properties:
NumPorts — Number of ports, N,
returned as an integer. The function calculates this value automatically when you
create the object.
Frequencies — S-parameter frequency, returned as a
scalar or row vector of length, K, in the ascending order. The
function sets this property from the filename or
freq input arguments.
Parameters — S-parameters, returned as an
N-by-N-by-K array of
complex numbers. The function sets this property from the
filename or data input arguments.
Impedance — Reference impedance in ohms, returned as
a positive real scalar. The function sets this property from the
filename or Z0 input arguments. If you
do not provide reference impedance,, the function uses a default value of
50.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.