Name

uW_S2P_split — Split a line into two parts.

Calling Sequence

[Sin,Sout[,Open]]=uW_S2P_split(Stotal[,Sopen])

Parameters

filename

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

S

tlist containing the S parameters.

Description

This function read S parameters from a S2P file.

Examples


// 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);




 
  

See Also

uW_S2P_write , uW_S2P_display , uW_unwarp

Authors

Tibault Reveyrand

www.reveyrand.fr

Used Functions

uW_unwarp