generateSPICE(fit,filename)
generates a SPICE file from a rationalfit of S-parameters. Simulation program
with integrated circuit emphasis (SPICE) is a general-purpose, open-source
analog electronic circuit simulator.
generateSPICE(fit,filename,zref)
generates a SPICE file using the reference impedance specified by
zref.
Rationalfit of S-parameters, specified as an
N-by-N array of
rfmodel.rational objects as returned by the rationalfit with S-parameters as input.
Data Types: double
filename — Name of file for SPICE subcircuit string | character vector
Name of file in which to store the SPICE subcircuit, specified as a string
or a character vector. The SPICE subcircuit is constructed out of passive
resistor (R) and capacitor (C) SPICE elements and controlled-source SPICE
elements voltage-controlled voltage source (E), current-controlled current
source (F), voltage-controlled current source (G), and current-controlled
voltage source (H).
Data Types: char | string
zref — Reference impedance 50 (default) | real scalar
Reference impedance, specified as a real scalar in ohms.