For such analysis the recommendation is to use functions within the RF Toolbox.Within RF Toolbox one can use rfckt.series or rfcket.cascade depending on the type of connection of interest. The process for determining the group delay is similar for either one you choose.
For example:
ckt1 = read(rfckt.passive,'file1.s2p');
ckt2 = read(rfckt.passive,'file2.s2p');
Then combine the circuits using either of the following:
combined = rfckt.series('Ckts',{ckt1,ckt2});
OR
combined = rfckt.cascade('Ckts',{ckt1,ckt2});
Now you can analyze for the group delay, but will need a vector of frequencies:
analyze(combined,logspace(8,10,21))
To plot the results:
plot(combined.AnalyzedResult.Freq,combined.AnalyzedResult.GroupDelay)
Best Answer