read

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

Syntax

h = read(h)
h = read(h,filename)
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 more information on reading data from a file, see Importing Property Values from Data Files. For a demonstration of how to use RF Toolbox™ software to read data from a .s2d file, see Visualizing Mixer Spurs. For information about the .amp format, see AMP File Format.

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 string, 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.

References

EIA/IBIS Open Forum, "Touchstone® File Format Specification," Rev. 1.1, 2002 (http://www.vhdl.org/pub/ibis/connector/touchstone_spec11.pdf).

See Also

analyze
calculate
extract
getz0
listformat
listparam
loglog
plot
plotyy
polar
restore
semilogx
semilogy
smith
write

  


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