How do I connect a 1-port network as termination?
9 views (last 30 days)
Show older comments
Hello,
I would like to attach a 1-port network as a termination to the second port of a 2-port network, i.e. cascading the two and then look at S11 at port 1 of the 2-port network.
I am unable to do so as all the cascading functions work with 2-port networks only and I cannot figure out how to solve this issue.
Thank you for your help.
0 Comments
Answers (2)
Joe Wargo
on 18 Feb 2015
Hello Alessandro,
You can use the cascadesparams() function. By default, cascadesparams cascades two port networks (or 2N-port networks), but can also be used to generically connect networks together. For the whole documentation, see:
doc cascadesparams
Here's a few examples to get you started:
(1) If your data is in files, let's assume the two-port data is in 'foo.s2p' and the one-port data is in 'bar.s1p'. Do the following:
S2 = sparameters('foo.s2p');
S1 = sparameters('bar.s1p');
Sfinal = cascadesparams(S2,S1,1);
It is important to note that, for this to work, the frequencies and impedances in the s2p file must match those in the s1p file. If you would like to visualize the resulting S11 data:
rfplot(Sfinal,1,1)
If you would like to access the numeric values of the S11 data:
s11 = rfparam(Sfinal,1,1);
(2) If your data is in variables, let's assume your two-port data is stored in a 2x2xK variable named data2, and your one-port data is stored in a 1x1xK variable named data1. Then:
datafinal = cascadesparams(data2,data1,1);
I hope this helps!
Joe
0 Comments
See Also
Categories
Find more on Data Import and Network Parameters in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!