Write RF network data to Touchstone file
rfwrite(_____,
creates a Touchstone file using the options in the name-value
pair arguments following the Name,Value
)filename
.
Write a new Touchstone file from file
default.s2p
using
data as
S50.Parameters
and
freq as
S50.Frequencies
. The output is stored
in defaultnew.s2p
.
S50 = sparameters('default.s2p'); data = S50.Parameters; freq = S50.Frequencies; rfwrite(data, freq, 'defaultnew.s2p')
Convert an existing Touchstone file
passive.s2p
to
S-parameters
with a new resistance
value. Write a Touchstone file passive100.s2p
using the new S-parameters.
S50 = sparameters('passive.s2p'); S100 = newref(S50,100); rfwrite(S100, 'passive100.s2p');
Convert an existing Touchstone file
passive.s2p
to
S-parameters
with a new resistance
value. Write a Touchstone file passive150.s2p
in MHz
using the new S-parameters.
S50 = sparameters('passive.s2p'); S150 = newref(S50,150); rfwrite(S150, 'passive150.s2p','FrequencyUnit', 'MHz');
Convert an existing Touchstone file
passive.s2p
to
Y-parameters
. Write a Touchstone file
passive.y2p
in MHz
using the new Y-parameters.
Y50 = yparameters('passive.s2p'); rfwrite(Y50, 'passive.y2p','FrequencyUnit', 'MHz');