Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

s2tf

Convert S-parameters of 2-port network to voltage or power-wave transfer function

Syntax

tf = s2tf(s_params)
tf = s2tf(s_params,z0,zs,zl)
tf = s2tf(s_params,z0,zs,zl,option)
tf = s2tf(hs)
tf = s2tf(hs,zs,zl)
tf = s2tf(hs,zs,zl,option)

Description

tf = s2tf(s_params) converts the scattering parameters, s_params, of a 2-port network into the voltage transfer function of the network.

tf = s2tf(s_params,z0,zs,zl) calculates the voltage transfer function using the reference impedance z0, source impedance zs, and load impedance zl.

tf = s2tf(s_params,z0,zs,zl,option) calculates the voltage or power-wave transfer function using the method specified by option.

tf = s2tf(hs) converts the 2-port S-parameter object, hs, into the voltage transfer function of the network.

tf = s2tf(hs,zs,zl) calculates the voltage transfer function using the source impedance zs, and load impedance zl.

tf = s2tf(hs,zs,zl,option) calculates the voltage or power-wave transfer function using the method specified by option.

Input Arguments

collapse all

2-port S-parameters, specified as an RF Toolbox™ S-parameter object.

Scattering parameters, specified as a complex 2-by-2-by-M array.

Reference impedance of S-parameters, specified in ohms.

Source impedance of S-parameters, specified in ohms.

Load impedance of S-parameters, specified in ohms.

Transfer function type, specified as an integer equal to 1, 2, or 3.

  • 1 — The transfer function is the gain from the incident voltage, Va, to the output voltage for arbitrary source and load impedances:

    tf=VlVa

    The following figure shows how to compute Va from the source voltage Vs:

    For the S-parameters and impedance values, the transfer function is:

    tf=(Zs+Zs*)Zs*S21(1+Γl)(1Γs)2(1S22Γl)(1ΓinΓs)

    where:

    Γl=ZlZoZl+ZoΓs=ZsZoZs+ZoΓin=S11+(S12S21Γl(1S22Γl))

    The following equation shows how the preceding transfer function is related to the transducer gain computed by the powergain function:

    GT=|tf|2Re(Zl)|Zl|2|Zs|2Re(Zs)

    Notice that if Zl and ZS are real, GT=|tf|2ZsZl.

  • 2 — The transfer function is the gain from the source voltage to the output voltage for arbitrary source and load impedances:

    tf=VlVs=S21(1+Γl)(1Γs)2(1S22Γl)(1ΓinΓs)

    You can use this option to compute the transfer function VLVin by setting zs to 0. This setting means that Γs = –1 and Vin = Vs.

  • 3 — The transfer function is the power-wave gain from the incident power wave at the first port to the transmitted power wave at the second port:

    tf=bp2ap1=Re(Zl)Re(Zs)ZlS21(1+Γl)(1Γs)(1S22Γl)(1ΓinΓs)

Output Arguments

collapse all

Voltage transfer function, returned as a vector of doubles.

Complex Number Support: Yes

Examples

collapse all

Calculate the voltage transfer function of an S-parameter array.

ckt = read(rfckt.passive,'passive.s2p');
sparams = ckt.NetworkData.Data;
tf = s2tf(sparams)
tf =

   0.9964 - 0.0254i
   0.9960 - 0.0266i
   0.9956 - 0.0284i
   0.9961 - 0.0290i
   0.9960 - 0.0301i
   0.9953 - 0.0317i
   0.9953 - 0.0334i
   0.9952 - 0.0349i
   0.9949 - 0.0367i
   0.9946 - 0.0380i
   0.9945 - 0.0409i
   0.9942 - 0.0425i
   0.9940 - 0.0442i
   0.9939 - 0.0462i
   0.9939 - 0.0495i
   0.9931 - 0.0526i
   0.9930 - 0.0544i
   0.9929 - 0.0571i
   0.9927 - 0.0597i
   0.9918 - 0.0630i
   0.9912 - 0.0660i
   0.9909 - 0.0686i
   0.9901 - 0.0718i
   0.9897 - 0.0756i
   0.9890 - 0.0790i
   0.9882 - 0.0828i
   0.9874 - 0.0876i
   0.9867 - 0.0916i
   0.9851 - 0.0957i
   0.9843 - 0.1009i
   0.9832 - 0.1050i
   0.9818 - 0.1102i
   0.9801 - 0.1156i
   0.9788 - 0.1209i
   0.9771 - 0.1269i
   0.9755 - 0.1328i
   0.9737 - 0.1396i
   0.9707 - 0.1465i
   0.9685 - 0.1527i
   0.9659 - 0.1599i
   0.9630 - 0.1674i
   0.9600 - 0.1751i
   0.9566 - 0.1831i
   0.9531 - 0.1918i
   0.9490 - 0.2003i
   0.9443 - 0.2090i
   0.9397 - 0.2186i
   0.9345 - 0.2276i
   0.9283 - 0.2379i
   0.9224 - 0.2481i
   0.9158 - 0.2588i
   0.9083 - 0.2695i
   0.9004 - 0.2802i
   0.8924 - 0.2908i
   0.8832 - 0.3021i
   0.8729 - 0.3139i
   0.8626 - 0.3249i
   0.8512 - 0.3366i
   0.8391 - 0.3487i
   0.8262 - 0.3600i
   0.8122 - 0.3717i
   0.7973 - 0.3831i
   0.7814 - 0.3942i
   0.7650 - 0.4052i
   0.7472 - 0.4160i
   0.7290 - 0.4258i
   0.7096 - 0.4356i
   0.6889 - 0.4444i
   0.6682 - 0.4516i
   0.6460 - 0.4585i
   0.6231 - 0.4651i
   0.5994 - 0.4704i
   0.5754 - 0.4746i
   0.5509 - 0.4771i
   0.5255 - 0.4789i
   0.4998 - 0.4789i
   0.4735 - 0.4775i
   0.4471 - 0.4746i
   0.4214 - 0.4699i
   0.3955 - 0.4635i
   0.3701 - 0.4552i
   0.3453 - 0.4452i
   0.3218 - 0.4334i
   0.2996 - 0.4198i
   0.2790 - 0.4050i
   0.2604 - 0.3888i
   0.2442 - 0.3717i
   0.2301 - 0.3540i
   0.2183 - 0.3367i
   0.2085 - 0.3196i
   0.2005 - 0.3032i
   0.1939 - 0.2875i
   0.1885 - 0.2728i
   0.1842 - 0.2584i
   0.1807 - 0.2453i
   0.1772 - 0.2327i
   0.1740 - 0.2212i
   0.1711 - 0.2100i
   0.1685 - 0.1994i
   0.1660 - 0.1896i
   0.1637 - 0.1801i
   0.1616 - 0.1712i
   0.1594 - 0.1626i
   0.1572 - 0.1544i
   0.1555 - 0.1467i
   0.1537 - 0.1393i
   0.1521 - 0.1322i
   0.1506 - 0.1254i
   0.1491 - 0.1190i
   0.1476 - 0.1128i
   0.1461 - 0.1069i
   0.1446 - 0.1013i
   0.1436 - 0.0959i
   0.1424 - 0.0906i
   0.1412 - 0.0856i
   0.1399 - 0.0807i
   0.1388 - 0.0760i
   0.1377 - 0.0714i
   0.1364 - 0.0670i
   0.1351 - 0.0627i
   0.1341 - 0.0584i
   0.1328 - 0.0543i
   0.1319 - 0.0503i
   0.1308 - 0.0463i
   0.1296 - 0.0424i
   0.1286 - 0.0384i
   0.1275 - 0.0344i
   0.1264 - 0.0305i
   0.1253 - 0.0265i
   0.1242 - 0.0224i
   0.1230 - 0.0182i
   0.1220 - 0.0141i
   0.1210 - 0.0098i
   0.1202 - 0.0054i
   0.1191 - 0.0008i
   0.1183 + 0.0038i
   0.1173 + 0.0087i
   0.1167 + 0.0136i
   0.1162 + 0.0188i
   0.1158 + 0.0241i
   0.1155 + 0.0295i
   0.1153 + 0.0351i
   0.1154 + 0.0409i
   0.1156 + 0.0468i
   0.1159 + 0.0532i
   0.1212 + 0.0610i
   0.1264 + 0.0693i
   0.1277 + 0.0763i
   0.1297 + 0.0836i
   0.1319 + 0.0911i
   0.1345 + 0.0989i
   0.1375 + 0.1068i
   0.1409 + 0.1147i
   0.1449 + 0.1229i
   0.1495 + 0.1311i
   0.1545 + 0.1393i
   0.1601 + 0.1475i
   0.1664 + 0.1557i
   0.1731 + 0.1639i
   0.1805 + 0.1722i
   0.1880 + 0.1799i
   0.1958 + 0.1873i
   0.2052 + 0.1949i
   0.2151 + 0.2023i
   0.2261 + 0.2090i
   0.2375 + 0.2156i
   0.2499 + 0.2208i
   0.2626 + 0.2270i
   0.2762 + 0.2314i
   0.2905 + 0.2354i
   0.3048 + 0.2389i
   0.3199 + 0.2410i
   0.3354 + 0.2426i
   0.3512 + 0.2429i
   0.3674 + 0.2425i
   0.3837 + 0.2412i
   0.4001 + 0.2386i
   0.4169 + 0.2347i
   0.4337 + 0.2299i
   0.4503 + 0.2240i
   0.4666 + 0.2163i
   0.4828 + 0.2080i
   0.4986 + 0.1988i
   0.5136 + 0.1880i
   0.5285 + 0.1759i
   0.5426 + 0.1631i
   0.5561 + 0.1491i
   0.5690 + 0.1337i
   0.5812 + 0.1178i
   0.5923 + 0.1007i
   0.6027 + 0.0829i
   0.6121 + 0.0647i
   0.6208 + 0.0452i
   0.6295 + 0.0256i
   0.6370 + 0.0036i
   0.6415 - 0.0182i
   0.6491 - 0.0411i
   0.6545 - 0.0662i
   0.6573 - 0.0919i
   0.6591 - 0.1187i
   0.6594 - 0.1455i
   0.6591 - 0.1730i

Algorithms

The following figure shows the setup for computing the transfer function, along with the impedences, voltages, and the power waves used to determine the gain.

The function uses the following voltages and power waves for calculations:

  • Vl is the output voltage across the load impedance.

  • Vs is the source voltage.

  • Vin is the input voltage of the 2-port network.

  • ap1 is the incident power wave, equal to Vs2Re(Zs).

  • bp2 is the transmitted power wave, equal to Re(Zl)ZlVl.

Introduced in R2006b

Was this topic helpful?