uW_S2P_split - Split a line into two parts.
This function read S parameters from a S2P file.
// Get the T11 parameter of a measured device
//
// Example with one measurement (Thru)
// ===================================
filename=tk_getfile("*.s2p");
S_thru=uW_S2P_read(filename);
[S_half_in,S_half_out]=uW_S2P_split(S_thru);
// Display the results
uW_S2P_display(S_thru,S_half_in,S_half_out);
// Example with two measurements (Thru + Open)
// ===========================================
filename=tk_getfile("*.s2p");
S_thru=uW_S2P_read(filename);
filename=tk_getfile("*.s2p");
S_opens=uW_S2P_read(filename);
[Sin,Sout,Sopen]=uW_S2P_split(S_thru,S_open);
// Display the results the corrected open
uW_S2P_display(Sopen);
// Example with two methods (Thru + Open)
// ======================================
filename=tk_getfile("*.s2p");
S_thru=uW_S2P_read(filename);
filename=tk_getfile("*.s2p");
S_opens=uW_S2P_read(filename);
[Sin,Sout,Gamma_open]=uW_S2P_split(S_thru,S_opens);
// Display the results
xset("window",100);
xname("Open @ DUT ref. plane");
uW_S2P_display(Gamma_open);
xset("window",101);
xname("Input,Output and Total Thru S parameters");
uW_S2P_display(Sin,Sout,S_thru);
// Comparison between the 2 methods
[Sin2,Sout2]=uW_S2P_split(S_thru);
xset("window",102);
xname("Comparison");
uW_S2P_display(Sin,Sin2);
uW_S2P_write , uW_S2P_display , uW_unwarp ,