smithchart

Plot complex vector of a reflection coefficient on Smith chart

Syntax

  • [lineseries,hsm] = smithchart(gamma) example

Description

example

[lineseries,hsm] = smithchart(gamma) plots the complex vector of a reflection coefficient gamma on a Smith chart. hsm is the handle of the Smith chart object. lineseries is a column vector of handles to lineseries objects, one handle per plotted line.

To plot network parameters from a circuit (rfckt) or data (rfdata) object on a Smith chart, use the smith function.

example

hsm = smithchart draws a blank Smith chart and returns the handle, hsm, of the Smith chart object.

Input Arguments

expand all

gamma — reflection coefficientcomplex vector

Reflection coefficient, specified as a complex vector.

Data Types: double
Complex Number Support: Yes

Output Arguments

expand all

lineseries — line properties handlecolumn vector

Line properties handle, returned as a column vector, changes the properties of the plotted lines by changing the Chart Line Properties. There is one handle per plotted line.

hsm — Smith chart handlescalar handle

Smith chart handle, specified as a scalar handle.

This table lists all properties you can specify for smithchart objects along with units, valid values, and descriptions of their use.

Property Name

Description

Units and 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 Text Box 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 in the chart. For the constant resistance and reactance lines, each element in Row 2 specifies the value at which the corresponding line 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]

Examples

expand all

Plot Reflection Data On a Smith Chart

S = sparameters('passive.s2p');
    s11 = rfparam(S,1,1);
    figure
    smithchart(s11)

Plot Impedance Data On a Smith Chart

z = 0.1*50 + 1j*(0:0.1:50);
gamma = z2gamma(z);
figure
smithchart(gamma)

Draw a Blank Smithchart

hsm = smithchart
hsm = 

   rfchart.smith with properties:

            Type: 'Z'
          Values: [2x5 double]
           Color: [0.4000 0.4000 0.4000]
       LineWidth: 0.5000
        LineType: '-'
        SubColor: [0.8000 0.8000 0.8000]
    SubLineWidth: 0.5000
     SubLineType: ':'
    LabelVisible: 'On'
       LabelSize: 10
      LabelColor: [0 0 0]
            Name: 'Smith chart'

See Also

| |

Was this topic helpful?