Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

read

Read RF data from file to new or existing circuit or data object

Syntax

h = read(h)

h = read(rfckt.datafile,filename)

h = read(rfckt.passive,filename)

h = read(rfckt.amplifier,filename)

h = read(rfckt.mixer,filename)

h = read(rfdata.data,filename)

Description

h = read(h) prompts you to select a file and then reads the data from that file into the circuit or data object, h. You can read data from an .snp, .ynp, .znp, .hnp, .gnp, or .amp file, where n is the number of ports. If h is an rfckt.amplifier, rfckt.mixer, or rfdata.data object, you can also read data from .p2d and .s2d files.

For an example of how to use RF Toolbox™ software to read data from a .s2d file, see Visualizing Mixer Spurs.

h = read(h,filename) updates h with data from the specified file. In this syntax, h can be a circuit or data object. filename is a character vector, representing the filename of a .snp, .ynp, .znp, .hnp, .gnp, or .amp file. If h is an rfckt.amplifier, rfckt.mixer, or rfdata.data object, filename can also represent a .p2d or .s2d file. For all files, the filename must include the file extension.

h = read(rfckt.datafile,filename) creates an rfckt.datafile object h, reads the RF data from the specified file, and stores it in h.

h = read(rfckt.passive,filename) creates an rfckt.passive object h, reads the RF data from the specified file, and stores it in h.

h = read(rfckt.amplifier,filename) creates an rfckt.amplifier object h, reads the RF data from the specified file, and stores it in h.

h = read(rfckt.mixer,filename) creates an rfckt.mixer object h, reads the RF data from the specified file, and stores it in h.

h = read(rfdata.data,filename) creates an rfdata.data object h, reads the RF data from the specified file, and stores it in h.

Examples

collapse all

Import data from the file default.amp into an rfckt.amplifier object.

ckt_obj=read(rfckt.amplifier, 'default.amp')
ckt_obj = 

   rfckt.amplifier with properties:

         NoiseData: [1x1 rfdata.noise]
     NonlinearData: [1x1 rfdata.power]
          IntpType: 'Linear'
       NetworkData: [1x1 rfdata.network]
             nPort: 2
    AnalyzedResult: [1x1 rfdata.data]
              Name: 'Amplifier'

References

EIA/IBIS Open Forum, “Touchstone File Format Specification,” Rev. 1.1, 2002 (https://ibis.org/connector/touchstone_spec11.pdf).

Introduced before R2006a

Was this topic helpful?