<< uW_S2Z S2P files uW_T2S >>

Microwave Toolbox >> S2P files > uW_SnP_write

uW_SnP_write

Write SnP data into a SnP file.

Calling Sequence

uW_SnP_write(S,filename,comments)

Parameters

filename

String parameter : filename of the SnP file including the path.

S

tlist containing the S parameters.

comments

vector of string. The comments line to write into the SnP file.

Description

This function write S parameters data into a SnP file. n between 3 and 9.

Examples

// === S3P generation
// Be carefull, the order in the filelist is VERY important

path="/home/tibo/Documents/XLIM/Ramadan/S4P/ramadan_s4p/";

file_12=path+"alla_s_iso_in.s2p";
file_13=path+"alla_s_iso_2.s2p";
file_23=path+"alla_s_in_2.s2p";

file_out=path+"alla2.s3p";

file_list=[file_12;file_13;file_23];

S3P=S2P_to_SnP(file_list);
uW_SnP_write(S3P,file_out,"Generated with Scilab - www.microwave.fr")

// === S4P generation
// Be carefull, the order in the filelist is VERY important

path="/home/tibo/Documents/XLIM/Ramadan/S4P/ramadan_s4p/";

file_12=path+"alla_s_iso_in.s2p";
file_13=path+"alla_s_iso_2.s2p";
file_14=path+"alla_s_iso_1.s2p";
file_23=path+"alla_s_in_2.s2p";
file_24=path+"alla_s_in_1.s2p";
file_34=path+"alla_s_2_1.s2p";

file_out=path+"alla2.s4p";

file_list=[file_12;file_13;file_14;file_23;file_24;file_34];

S4P=S2P_to_SnP(file_list);
uW_SnP_write(S4P,file_out,"Generated with Scilab - www.microwave.fr")

See Also

Authors

Tibault Reveyrand

www.reveyrand.fr


Report an issue
<< uW_S2Z S2P files uW_T2S >>