extract

Extract specified network parameters from rfckt object or data object

Syntax

[outmatrix, frequencies] = extract(rfcktobj,outtype,z0)
[outmatrix, frequencies] = extract(rfdataobj,outtype,z0)

Description

example

[outmatrix, frequencies] = extract(rfcktobj,outtype,z0) extracts the network parameters of an rfckt object, rfcktobj and returns them in an outmatrix.

[outmatrix, frequencies] = extract(rfdataobj,outtype,z0) extracts the network parameters of a data object, rfdataobj and returns them in an outmatrix.

Examples

collapse all

Extract the ABCD-parameters for an rfckt.amplifier object read from default.s2p.

amp = read(rfckt.amplifier,'default.s2p');
[outmatrix,freq] = extract(amp,'ABCD_parameters');

Input Arguments

collapse all

RFCKT object, specified as an object handle.

Example: amp = rfckt.amplifier;[outmatrix,freq] = extract(amp,'ABCD_parameters');. Extracts the ABCD-parameters of an RFCKT amplifier object.

Data Types: char | string

Data object, specified as an object handle.

Data Types: char | string

Type of network parameters to extract, specified as 'S-Parameters', 'Y-Parameters', 'Z-Parameters', 'H-Parameters', 'G-Parameters', 'T-Parameters', and 'ABCD-Parameters'.

Example: amp = rfckt.amplifier;[outmatrix,freq] = extract(amp,'ABCD_parameters');. Extracts the ABCD-parameters of an RFCKT amplifier object.

Data Types: char | string

Reference impedance when outtype is 'S-Parameters', specified as a positive scalar integer.

Example: 40

Data Types: double

Output Arguments

collapse all

Network parameters extracted from an rfckt or data object, returned as a 2-by-2-by-N matrix.

Network parameter frequencies, returned as a vector.

Introduced before R2006a