| RF Toolbox™ | ![]() |
[lineseries,hsm] = smithchart(y) hsm = smithchart
[lineseries,hsm] = smithchart(y) plots the complex vector y on a Smith chart and returns
hsm, which is the handle of the Smith chart object.
Change the properties of the chart by changing the smithchart object properties described in the next section.
lineseries, which is a column vector of handles to lineseries objects, one handle per plotted line.
Change the properties of the plotted lines by changing the lineseries properties.
hsm = smithchart draws a blank Smith chart and returns the handle hsm of the Smith chart object.
Note To plot multiple sets of data on a Smith chart, use the following syntax: [lineseries1,hsm] = smithchart(y) hold on lineseries2 = smithchart(z) You can use change the properties of the lines, lineseries1 and lineseries2, and of the properties of the chart, hsm. |
Note To plot network parameters from a circuit (rfckt) or data (rfdata) object on a Smith chart, use the smith function. |
smithchart creates the plot using default property values of a Smith chart. Use set(h,'PropertyName1',PropertyValue1,...) to change the property values. Use get(h) to get the property values.
This table lists all properties you can specify for smithchart objects along with units, valid values, and a descriptions of their use.
Property Name | Description | Units, Values |
|---|---|---|
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). | |
Color of the line labels. | ColorSpec. Default is [0 0 0] (black). | |
Size of the line labels. | FontSize. Default is 10. See the Annotation Textbox Properties reference page for more information on specifying font size. | |
Visibility of the line labels. | 'on' (default) or 'off' | |
Line spec for a Z or Y Smith chart. For a ZY Smith chart, the Z line spec. | LineSpec. Default is '-' (solid line). | |
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. | |
The Y line color for a ZY Smith chart. | ColorSpec. Default is [0.8 0.8 0.8] (medium gray). | |
The Y line spec for a ZY Smith chart. | LineSpec. Default is ':' (dotted line). | |
The Y line width for a ZY Smith chart. | Number of points. Default is 0.5. | |
Type of Smith chart. | 'z' (default), 'y', or 'zy' | |
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] |
| get |
| set |
| smith |
![]() | s2z | snp2smp | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |