主要内容

rfchain.setstage

Update RF chain stage

Description

setstage(obj,idx,g,nf,oip3val,'Name',nm) updates gain, noise figure, output-referred third-order intercept values of a stage. Use the index, idx of the RF chain object to specify the stage you want to update. At a time, you can change the name of only one stage.

example

setstage(obj,g,nf,'IIP3',ip3val,'Name',nm) updates the input-referred third-order intercept value of a stage.

setstage(_____,Name,Value) updates the values of a stage using the name-value pair arguments.

Examples

collapse all

Create an RF chain object.

g = [11 -3];
nf = [25 3];
o3 = [30 Inf];
nm = {'amp1','filt1'};
rfch = rfchain(g,nf,o3,'Name',nm);

Change the noise figure of filt1 to 20 dB.

setstage(rfch,2,'NoiseFigure',20)

View results on a worksheet.

worksheet(rfch)

Figure contains an object of type uitable.

Input Arguments

collapse all

RF chain object, specified as an rfchain object.

Number of a stage, specified as an integer or vector of integers.

Example: 2

Data Types: double

Gain of a stage, specified as a scalar or vectors of same length.

Example: -3

Data Types: double

Noise figure of a stage, specified as a scalar or vectors of same length.

Example: 20

Data Types: double

Output-referred third-order intercept of a stage, specified as a scalar or vectors of same length.

Example: 30

Data Types: double

Name-Value Arguments

collapse all

Example: setstage(ch,2,'NoiseFigure',20)

Optional comma-separated pairs of Name,Value pair arguments, where Name is the argument name and Value is the corresponding value. Name must appear inside single quotes ('').

Gain of a stage, specified as a comma-separated pair consisting of 'Gain' and a scalar or vectors of same length. This pair updates the gain of a stage specified by idx.

Example: 10

Data Types: double

Noise figure of a stage, specified as a comma-separated pair consisting of 'NoiseFigure' and a scalar or vectors of same length. This pair updates the noise figure of a stage specified by idx.

Example: 30

Data Types: double

Output-referred third-order intercept of a stage, specified as a comma-separated pair consisting of 'OIP3' and a scalar or vectors of same length. This pair updates the output-referred third-order intercept of a stage specified by idx.

Example: 30

Data Types: double

Input-referred third-order intercept of a stage, specified as a comma-separated pair consisting of 'IIP3' and a scalar or vectors of same length. This pair updates the input-referred third-order intercept of a stage specified by idx.

Example: 30

Data Types: double

Name of a stage, specified as a comma-separated pair consisting of 'Name' and a character vector. This pair updates the name of the stage specified by idx.

Example: amp1

Version History

Introduced in R2014b