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.

abcdparameters

Create ABCD parameter object

Syntax

habcd = abcdparameters(filename)
habcd = abcdparameters(hnet)
habcd = abcdparameters(data,freq)
habcd = abcdparameters(rftbxobj)

Description

example

habcd = abcdparameters(filename) creates an ABCD parameter object habcd by importing data from the Touchstone file specified by filename. All data is stored in real/imag format.

habcd = abcdparameters(hnet) creates an ABCD parameter object from the RF Toolbox™ network parameter object hnet.

habcd = abcdparameters(data,freq) creates an ABCD parameter object from the ABCD parameter data, data, and frequencies, freq.

habcd = abcdparameters(rftbxobj) extracts network data from rftbxobj and converts it into ABCD-parameter data.

Examples

collapse all

Read the file default.s2p as abcd-parameters.

abcd = abcdparameters('default.s2p')
abcd = 

  abcdparameters: ABCD-parameters object

       NumPorts: 2
    Frequencies: [191x1 double]
     Parameters: [2x2x191 double]

  rfparam(obj,specifier) returns specified ABCD-parameter 'A', 'B', 'C', or 'D'

Extract parameter A.

A = rfparam(abcd,'A')
A =

  -0.1470 - 0.0698i
  -0.1421 - 0.0698i
  -0.1373 - 0.0696i
  -0.1325 - 0.0694i
  -0.1277 - 0.0691i
  -0.1231 - 0.0688i
  -0.1185 - 0.0683i
  -0.1140 - 0.0678i
  -0.1097 - 0.0672i
  -0.1054 - 0.0666i
  -0.1013 - 0.0658i
  -0.0973 - 0.0650i
  -0.0934 - 0.0642i
  -0.0896 - 0.0632i
  -0.0860 - 0.0622i
  -0.0823 - 0.0612i
  -0.0788 - 0.0601i
  -0.0752 - 0.0590i
  -0.0717 - 0.0579i
  -0.0682 - 0.0567i
  -0.0646 - 0.0555i
  -0.0610 - 0.0543i
  -0.0575 - 0.0532i
  -0.0539 - 0.0520i
  -0.0504 - 0.0508i
  -0.0470 - 0.0496i
  -0.0435 - 0.0484i
  -0.0402 - 0.0471i
  -0.0368 - 0.0457i
  -0.0336 - 0.0443i
  -0.0304 - 0.0428i
  -0.0274 - 0.0412i
  -0.0244 - 0.0395i
  -0.0216 - 0.0378i
  -0.0188 - 0.0360i
  -0.0160 - 0.0341i
  -0.0134 - 0.0323i
  -0.0107 - 0.0305i
  -0.0081 - 0.0286i
  -0.0054 - 0.0268i
  -0.0028 - 0.0251i
  -0.0002 - 0.0235i
   0.0024 - 0.0219i
   0.0050 - 0.0203i
   0.0075 - 0.0188i
   0.0100 - 0.0173i
   0.0124 - 0.0158i
   0.0148 - 0.0143i
   0.0170 - 0.0127i
   0.0192 - 0.0111i
   0.0213 - 0.0094i
   0.0233 - 0.0076i
   0.0252 - 0.0058i
   0.0270 - 0.0040i
   0.0287 - 0.0022i
   0.0304 - 0.0003i
   0.0320 + 0.0016i
   0.0335 + 0.0035i
   0.0349 + 0.0053i
   0.0363 + 0.0072i
   0.0376 + 0.0091i
   0.0389 + 0.0110i
   0.0400 + 0.0129i
   0.0410 + 0.0148i
   0.0419 + 0.0167i
   0.0428 + 0.0185i
   0.0436 + 0.0204i
   0.0444 + 0.0222i
   0.0452 + 0.0239i
   0.0460 + 0.0256i
   0.0468 + 0.0272i
   0.0476 + 0.0288i
   0.0485 + 0.0301i
   0.0493 + 0.0314i
   0.0502 + 0.0326i
   0.0510 + 0.0337i
   0.0517 + 0.0348i
   0.0524 + 0.0358i
   0.0530 + 0.0369i
   0.0535 + 0.0380i
   0.0538 + 0.0391i
   0.0539 + 0.0404i
   0.0538 + 0.0417i
   0.0534 + 0.0430i
   0.0529 + 0.0444i
   0.0523 + 0.0458i
   0.0517 + 0.0472i
   0.0510 + 0.0486i
   0.0505 + 0.0499i
   0.0500 + 0.0512i
   0.0496 + 0.0524i
   0.0492 + 0.0534i
   0.0485 + 0.0542i
   0.0477 + 0.0547i
   0.0469 + 0.0551i
   0.0460 + 0.0553i
   0.0452 + 0.0554i
   0.0444 + 0.0555i
   0.0436 + 0.0556i
   0.0428 + 0.0558i
   0.0420 + 0.0561i
   0.0409 + 0.0564i
   0.0394 + 0.0565i
   0.0378 + 0.0565i
   0.0362 + 0.0564i
   0.0345 + 0.0561i
   0.0329 + 0.0558i
   0.0313 + 0.0555i
   0.0298 + 0.0553i
   0.0282 + 0.0551i
   0.0266 + 0.0551i
   0.0251 + 0.0551i
   0.0238 + 0.0553i
   0.0225 + 0.0556i
   0.0212 + 0.0558i
   0.0198 + 0.0559i
   0.0182 + 0.0557i
   0.0165 + 0.0551i
   0.0147 + 0.0540i
   0.0130 + 0.0524i
   0.0114 + 0.0503i
   0.0100 + 0.0482i
   0.0084 + 0.0467i
   0.0065 + 0.0454i
   0.0043 + 0.0444i
   0.0017 + 0.0436i
  -0.0011 + 0.0427i
  -0.0042 + 0.0417i
  -0.0073 + 0.0404i
  -0.0102 + 0.0388i
  -0.0126 + 0.0367i
  -0.0145 + 0.0345i
  -0.0164 + 0.0323i
  -0.0184 + 0.0302i
  -0.0206 + 0.0282i
  -0.0228 + 0.0261i
  -0.0252 + 0.0240i
  -0.0277 + 0.0219i
  -0.0303 + 0.0196i
  -0.0329 + 0.0172i
  -0.0354 + 0.0146i
  -0.0378 + 0.0120i
  -0.0404 + 0.0094i
  -0.0430 + 0.0069i
  -0.0457 + 0.0044i
  -0.0484 + 0.0018i
  -0.0512 - 0.0008i
  -0.0540 - 0.0035i
  -0.0567 - 0.0063i
  -0.0593 - 0.0094i
  -0.0617 - 0.0127i
  -0.0639 - 0.0163i
  -0.0661 - 0.0200i
  -0.0682 - 0.0238i
  -0.0703 - 0.0277i
  -0.0724 - 0.0316i
  -0.0745 - 0.0357i
  -0.0766 - 0.0397i
  -0.0788 - 0.0438i
  -0.0810 - 0.0479i
  -0.0833 - 0.0520i
  -0.0857 - 0.0560i
  -0.0881 - 0.0601i
  -0.0905 - 0.0641i
  -0.0929 - 0.0682i
  -0.0953 - 0.0723i
  -0.0977 - 0.0764i
  -0.1001 - 0.0806i
  -0.1024 - 0.0849i
  -0.1046 - 0.0894i
  -0.1068 - 0.0939i
  -0.1088 - 0.0985i
  -0.1108 - 0.1033i
  -0.1127 - 0.1080i
  -0.1145 - 0.1129i
  -0.1164 - 0.1178i
  -0.1181 - 0.1227i
  -0.1198 - 0.1278i
  -0.1215 - 0.1329i
  -0.1232 - 0.1381i
  -0.1248 - 0.1434i
  -0.1264 - 0.1487i
  -0.1279 - 0.1542i
  -0.1295 - 0.1597i
  -0.1309 - 0.1653i
  -0.1324 - 0.1710i
  -0.1338 - 0.1767i
  -0.1352 - 0.1825i
  -0.1366 - 0.1883i
  -0.1379 - 0.1942i
  -0.1393 - 0.2001i

Input Arguments

collapse all

ABCD parameter data, specified as an array of complex numbers, of size 2N-by-2N-by-K. The function uses this input argument to set the value of the Parameters property of habcd.

Touchstone data file, specified as a character vector, that contains network parameter data. filename can be the name of a file on the MATLAB® path or the full path to a file.

Example: habcd = abcdparameters('defaultbandpass.s2p');

ABCD parameter frequencies, specified as a vector of positive real numbers, sorted from smallest to largest. The function uses this input argument to set the value of the Frequencies property of habcd.

Network parameter data, specified as a scalar handle. If hnet is an ABCD parameter object, then habcd is a deep copy of hnet. Otherwise, the function performs a network parameter conversion to create habcd. When converting network parameters, the same restrictions apply as those for RF Toolbox network parameter data conversion functions:

  • ABCD parameter objects support 2N-port data.

  • Hybrid-g parameter objects support 2-port data.

  • Hybrid parameter objects support 2-port data.

  • S-parameter objects support N-port data.

  • Y-parameter objects support N-port data.

  • Z-parameter objects support N-port data.

Network object, specified as a scalar handle. Specify rftbxobj as one of the following types: rfdata.data, rfdata.network, and any analyzed rfckt type.

Output Arguments

collapse all

ABCD parameter data, returned as a scalar handle. disp(habcd) returns the properties of the object:

  • NumPorts — Number of ports, specified as an integer. The function calculates this value automatically when you create the object.

  • Frequencies — ABCD parameter frequencies, specified as a K- by- 1 vector of positive real numbers sorted from smallest to largest. The function sets this property from the filename or freq input arguments.

  • Parameters — ABCD parameter data, specified as a 2N-by-2N-by-K array of complex numbers. The function sets this property from the filename or data input arguments.

Introduced in R2012b

Was this topic helpful?