Products & Services Solutions Academia Support User Community Company

Learn more about RF Toolbox   

Creating RF Objects

Constructing a New Object

You can create any rfdata, rfckt or rfmodel object by calling the object constructor. You can create an rfmodel object by fitting a rational function to passive component data.

This section contains the following topics:

Calling the Object Constructor

To create a new RF object with default property values, you call the object constructor without any arguments:

h = ObjectConstructorName

where h is the handle to the new object and ObjectConstructorName is the name of the object constructor. ObjectConstructorName is of the form type.name, where

For example, the ObjectConstructorName for an RLCG transmission line object is rfckt.rlcgline because the RLCG transmission line object is a circuit (rfckt) object named rlcgline.

For a list of the available object constructors for each type of object, see Selecting an RF Object.

The following code illustrates how to call the object constructor to create a microstrip transmission line object with default property values. The output t1 is the handle of the newly created transmission line object.

t1 = rfckt.microstrip

RF Toolbox software lists the properties of the transmission line you created along with the associated default property values.

t1 = 
           Name: 'Microstrip Transmission Line'
          nPort: 2
 AnalyzedResult: []
     LineLength: 0.0100
       StubMode: 'NotAStub'
    Termination: 'NotApplicable'
          Width: 6.0000e-004
         Height: 6.3500e-004
      Thickness: 5.0000e-006
       EpsilonR: 9.8000
      SigmaCond: Inf
    LossTangent: 0

The rfckt.microstrip reference page describes these properties in detail.

Fitting a Rational Function to Passive Component Data

You can create a model object by fitting a rational function to passive component data. You use this approach to create a model object that represents one of the following using a rational function:

For more information, see Fitting a Model Object to Circuit Object Data.

Copying an Existing Object

You can create a new object with the same property values as an existing object by using the copy function to copy the existing object. This function is useful if you have an object that is similar to one you want to create.

For example,

t2 = copy(t1);

creates a new object which has the same property values as the microstrip transmission line object with handle h.

You can later change specific property values for this copy. For information on modifying object properties, see Specifying or Importing Component Data.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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