Documentation

rfparam

Extract vector of network parameters

Syntax

  • n_ij = rfparam(hnet,i,j)
  • abcd_vector = rfparam(habcd,abcdflag)

Description

n_ij = rfparam(hnet,i,j) extracts the network parameter vector (i,j) from the network parameter object, hnet.

abcd_vector = rfparam(habcd,abcdflag) extracts the A, B, C, or D vector from ABCD-parameter object, habcd.

Examples

collapse all

Create Data Vector From S-Parameter Object

Read in the file default.s2p into an sparameters object and get the S21 value.

S = sparameters('default.s2p');
s21 = rfparam(S,2,1)
s21 =

  -0.6857 + 1.7827i
  -0.6560 + 1.7980i
  -0.6262 + 1.8131i
  -0.5963 + 1.8278i
  -0.5664 + 1.8422i
  -0.5363 + 1.8563i
  -0.5062 + 1.8700i
  -0.4760 + 1.8835i
  -0.4457 + 1.8966i
  -0.4152 + 1.9094i
  -0.3847 + 1.9219i
  -0.3542 + 1.9339i
  -0.3236 + 1.9455i
  -0.2930 + 1.9566i
  -0.2623 + 1.9674i
  -0.2316 + 1.9779i
  -0.2008 + 1.9882i
  -0.1698 + 1.9983i
  -0.1387 + 2.0084i
  -0.1073 + 2.0185i
  -0.0758 + 2.0286i
  -0.0441 + 2.0387i
  -0.0124 + 2.0488i
   0.0194 + 2.0588i
   0.0513 + 2.0687i
   0.0834 + 2.0785i
   0.1158 + 2.0882i
   0.1484 + 2.0977i
   0.1813 + 2.1072i
   0.2145 + 2.1164i
   0.2482 + 2.1256i
   0.2821 + 2.1344i
   0.3161 + 2.1430i
   0.3504 + 2.1513i
   0.3849 + 2.1595i
   0.4197 + 2.1676i
   0.4550 + 2.1757i
   0.4908 + 2.1839i
   0.5272 + 2.1922i
   0.5642 + 2.2007i
   0.6020 + 2.2095i
   0.6403 + 2.2186i
   0.6792 + 2.2281i
   0.7186 + 2.2377i
   0.7587 + 2.2476i
   0.7994 + 2.2575i
   0.8410 + 2.2675i
   0.8833 + 2.2774i
   0.9266 + 2.2871i
   0.9708 + 2.2967i
   1.0161 + 2.3061i
   1.0623 + 2.3152i
   1.1091 + 2.3243i
   1.1567 + 2.3333i
   1.2053 + 2.3423i
   1.2551 + 2.3512i
   1.3062 + 2.3600i
   1.3588 + 2.3687i
   1.4131 + 2.3774i
   1.4691 + 2.3860i
   1.5272 + 2.3944i
   1.5870 + 2.4032i
   1.6484 + 2.4123i
   1.7115 + 2.4218i
   1.7768 + 2.4313i
   1.8443 + 2.4407i
   1.9143 + 2.4497i
   1.9871 + 2.4582i
   2.0629 + 2.4659i
   2.1419 + 2.4726i
   2.2243 + 2.4782i
   2.3101 + 2.4840i
   2.3991 + 2.4911i
   2.4918 + 2.4987i
   2.5887 + 2.5060i
   2.6900 + 2.5120i
   2.7962 + 2.5161i
   2.9077 + 2.5174i
   3.0248 + 2.5150i
   3.1481 + 2.5082i
   3.2778 + 2.4961i
   3.4155 + 2.4848i
   3.5624 + 2.4786i
   3.7185 + 2.4736i
   3.8836 + 2.4662i
   4.0576 + 2.4524i
   4.2405 + 2.4287i
   4.4322 + 2.3911i
   4.6326 + 2.3359i
   4.8415 + 2.2595i
   5.0590 + 2.1579i
   5.3116 + 2.0531i
   5.6159 + 1.9604i
   5.9571 + 1.8657i
   6.3204 + 1.7550i
   6.6908 + 1.6143i
   7.0535 + 1.4295i
   7.3937 + 1.1868i
   7.6964 + 0.8720i
   7.9468 + 0.4711i
   8.1299 - 0.0298i
   8.3110 - 0.6357i
   8.5403 - 1.3306i
   8.7814 - 2.0977i
   8.9975 - 2.9196i
   9.1519 - 3.7795i
   9.2080 - 4.6601i
   9.1291 - 5.5445i
   8.8786 - 6.4155i
   8.4198 - 7.2560i
   7.7160 - 8.0490i
   6.8506 - 8.6946i
   5.9420 - 9.1242i
   5.0061 - 9.3672i
   4.0588 - 9.4532i
   3.1158 - 9.4116i
   2.1931 - 9.2719i
   1.3066 - 9.0637i
   0.4720 - 8.8165i
  -0.2947 - 8.5596i
  -0.9777 - 8.3228i
  -1.5383 - 8.0622i
  -1.9620 - 7.7264i
  -2.2692 - 7.3328i
  -2.4800 - 6.8992i
  -2.6148 - 6.4430i
  -2.6939 - 5.9818i
  -2.7376 - 5.5332i
  -2.7663 - 5.1147i
  -2.8001 - 4.7441i
  -2.8594 - 4.4387i
  -2.9211 - 4.1801i
  -2.9519 - 3.9375i
  -2.9569 - 3.7102i
  -2.9413 - 3.4973i
  -2.9102 - 3.2982i
  -2.8689 - 3.1120i
  -2.8225 - 2.9379i
  -2.7761 - 2.7753i
  -2.7349 - 2.6234i
  -2.7041 - 2.4813i
  -2.6776 - 2.3487i
  -2.6464 - 2.2251i
  -2.6116 - 2.1099i
  -2.5741 - 2.0022i
  -2.5348 - 1.9015i
  -2.4946 - 1.8069i
  -2.4544 - 1.7178i
  -2.4154 - 1.6335i
  -2.3782 - 1.5531i
  -2.3440 - 1.4761i
  -2.3111 - 1.4026i
  -2.2778 - 1.3333i
  -2.2442 - 1.2679i
  -2.2106 - 1.2060i
  -2.1771 - 1.1474i
  -2.1442 - 1.0918i
  -2.1119 - 1.0388i
  -2.0805 - 0.9882i
  -2.0504 - 0.9396i
  -2.0216 - 0.8929i
  -1.9938 - 0.8481i
  -1.9662 - 0.8054i
  -1.9391 - 0.7647i
  -1.9124 - 0.7258i
  -1.8862 - 0.6887i
  -1.8605 - 0.6532i
  -1.8353 - 0.6190i
  -1.8108 - 0.5861i
  -1.7870 - 0.5543i
  -1.7640 - 0.5235i
  -1.7415 - 0.4938i
  -1.7195 - 0.4652i
  -1.6978 - 0.4378i
  -1.6766 - 0.4114i
  -1.6558 - 0.3860i
  -1.6353 - 0.3615i
  -1.6152 - 0.3377i
  -1.5954 - 0.3147i
  -1.5759 - 0.2924i
  -1.5567 - 0.2706i
  -1.5377 - 0.2493i
  -1.5189 - 0.2286i
  -1.5003 - 0.2086i
  -1.4819 - 0.1892i
  -1.4638 - 0.1704i
  -1.4459 - 0.1523i
  -1.4283 - 0.1349i
  -1.4110 - 0.1182i
  -1.3940 - 0.1022i
  -1.3773 - 0.0869i

Input Arguments

collapse all

abcdflag — ABCD-parameter index'A' | 'B' | 'C' | 'D'

Flag that determines which ABCD parameters the function extracts, specified as 'A', 'B', 'C', or 'D'.

habcd — 2-port ABCD parametersABCD parameter object

2-port ABCD parameters, specified as an RF Toolbox™ ABCD parameter object. When you specify abcdflag, you must also specify an ABCD parameter object.

hnet — Network parametersnetwork parameter object

Network parameters, specified as an RF Toolbox network parameter object.

i — Row indexpositive integer

Row index of data to extract, specified as a positive integer.

j — Column indexpositive integer

Column index of data to extract, specified as a positive integer.

Output Arguments

collapse all

n_ij — Network parameters (i, j)vector

Network parameters (i, j), returned as a vector. The i and j input arguments determine which parameters the function returns.

Example: S_21 = rfparam(hs,2,1)

abcd_vectorA, B, C, or D- parametersvector

A, B, C, or D- parameters, returned as a vector. The abcdflag input argument determines which parameters the function returns. The function supports only 2-port ABCD parameters; thus, the output is always a vector.

Example: a_vector = rfparam(habcd,'A');

Was this topic helpful?