smith - Plot specified circuit object parameters on Smith chart

Syntax

[lineseries,hsm] = smith(h,parameter1,...,parametern,type)
[lineseries,hsm] = smith(h,'parameter1',...,'parametern', type,xparameter,xformat,'condition1',value1,..., 'conditionm',valuem, 'freq',freq,'pin',pin)

Description

[lineseries,hsm] = smith(h,parameter1,...,parametern,type) plots the network parameters parameter1,..., parametern from the object h on a Smith chart. h is the handle of a circuit (rfckt) or data (rfdata) object that contains n-port network parameter data. type is a string that specifies the type of Smith chart:

Type listparam(h) to get a list of valid parameters for a circuit object h.

[lineseries,hsm] = smith(h,'parameter1',...,'parametern', type,xparameter,xformat,'condition1',value1,..., 'conditionm',valuem, 'freq',freq,'pin',pin) plots the specified parameters at the specified operating conditions for the object h.

xparameter is the independent variable to use in plotting the specified parameters. Several xparameter values are available for all objects. When you import 2-port rfckt.amplifier, rfckt.mixer, or rfdata.data object specifications from a .p2d or .s2d file, you can also specify any operating conditions from the file that have numeric values, such as bias.

The following table shows the most commonly available parameters and the corresponding xparameter values. The default settings listed in the table are used if xparameter is not specified.

Parameter Namexparameter values
Pout, Phase, LS11, LS12, LS21, LS22Pin (default), Freq
S11, S12, S21, S22, NF, OIP3, VSWRIn, VSWROut, GAMMAIn, GAMMAOut, FMIN, GAMMAOPT, RNFreq
AM/AM, AM/PMAM

xformat is the format to use for the specified xparameter. No xformat specification is needed when xparameter is an operating condition.

The following table shows the xformat values that are available for the xparameter values listed in the preceding table, along with the default settings that are used if xformat is not specified.

xparameter valuesxformat values
PindBm (default), mW, W, dBW
Freq

THz, GHz, MHz, KHz, Hz

By default, xformat is chosen to provide the best scaling for the given xparameter values.

AMMagnitude (decibels) (default), Magnitude (linear)

condition1,value1,..., conditionm,valuem are the optional condition/value pairs at which to plot the specified parameters. These pairs are usually operating conditions from a .p2d or .s2d file. For some parameters, you can specify a set of frequency or input power values at which to plot the specified parameter.

For example:

freq is the optional frequency value, in hertz, at which to plot the specified parameters.

pin is the optional input power value, in dBm, at which to plot the specified parameters.

If h has multiple operating conditions, such as from a .p2d or .s2d file, the smith method operates as follows:

Changing Properties of the Plotted Lines

The smith method returns lineseries, a column vector of handles to lineseries objects, one handle per plotted line. Use the MATLAB lineseries properties function to change the properties of these lines.

Changing Properties of the Smith Chart

The smith method returns the handle hsm of the Smith chart. Use the properties listed below to change the properties of the chart itself.

Properties

smith creates the plot using the default property values of a Smith chart. Use set(hsm,'PropertyName1',PropertyValue1,...) to change the property values of the chart. Use get(hsm) to get the property values.

This table lists all properties you can specify for a Smith chart object along with units, valid values, and a descriptions of their use.

Property Name

Description

Units, Values

Color

Line color for a Z or Y Smith chart. For a ZY Smith chart, the Z line color.

ColorSpec. Default is [0.4 0.4 0.4] (dark gray).

LabelColor

Color of the line labels.

ColorSpec. Default is [0 0 0] (black).

LabelSize

Size of the line labels.

FontSize. Default is 10. See the Annotation Textbox Properties reference page for more information on specifying font size.

LabelVisible

Visibility of the line labels.

'on' (default) or 'off'

LineType

Line spec for a Z or Y Smith chart. For a ZY Smith chart, the Z line spec.

LineSpec. Default is '-' (solid line).

LineWidth

Line width for a Z or Y Smith chart. For a ZY Smith chart, the Z line width.

Number of points. Default is 0.5.

SubColor

The Y line color for a ZY Smith chart.

ColorSpec. Default is [0.8 0.8 0.8] (medium gray).

SubLineType

The Y line spec for a ZY Smith chart.

LineSpec. Default is ':' (dotted line).

SubLineWidth

The Y line width for a ZY Smith chart.

Number of points. Default is 0.5.

Type

Type of Smith chart.

'z' (default), 'y', or 'zy'

Value

Two-row matrix. Row 1 specifies the values of the constant resistance and reactance lines that appear on the chart. For the constant resistance/reactance lines, each element in Row 2 specifies the value of the constant reactance/resistance line at which the corresponding line specified in Row 1 ends.

2-by-n matrix. Default is [0.2000 0.5000 1.0000 2.0000 5.0000; 1.0000 2.0000 5.0000 5.0000 30.0000]

See Also

analyze
calculate
circle
getz0
listformat
listparam
loglog
plot
plotyy
polar
read
restore
semilogx
semilogy
write

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS