groupdelay

Group delay of s-parameter object or RF filter object or RF Toolbox circuit object

Description

example

gd = groupdelay(sparamobj) calculates the group delay of an S-parameter object at the frequencies specified in the S-parameter object file. sparamobj can be an s-parameters object or a nport object.

example

gd = groupdelay(rfobj,freq) calculates the group delay of an RF Toolbox™ network object, rfobj, at specified frequencies.

gd = groupdelay(filterobj,freq) calculates the group delay of an filter object, filterobj, at specified frequencies.

gd = groupdelay(__,i,j) calculates the group delay of a specific Sij. If i, j are not specified, the group delay is calculated for S21 for two-port objects and S11 for non-two-port objects.

gd = groupdelay(__,Name,Value) calculates the group delay using additional options specified by one or more Name,Value pair arguments. You can use any of the arguments from previous syntaxes.

Examples

collapse all

Calculate and plot the group delay of an RLC notch filter at a frequency range from 10 GHz through 1000 GHz frequency.

filt = circuit('notch');
add(filt,[1 2],resistor(200))
add(filt,[1 2],inductor(100e-9))
add(filt,[1 2],capacitor(25e-12))
setports(filt,[1 0],[2 0])
freq = 10e6:10e4:1000e6;
gd1 = groupdelay(filt,freq);
figure
plot(freq,gd1)

Find and plot the group delay of the file 'defaultbandpass.s2p'.

S = sparameters('defaultbandpass.s2p');
freq = S.Frequencies;
gd2 = groupdelay(S,freq);
figure
plot(freq,gd2)

Input Arguments

collapse all

S-parameter object. The function uses the data in the object to calculate the group delay.

Example: sparamobj = sparameters('defaultbandpass.s2p')

RF network object, specified as object, of the following types: s-parameters, nport, circuit, and lcladder.

RF filter, specified as an rffilter object.

Frequencies, specified as a vector of positive real numbers.

Port numbers of s-parameter object or rf object, specified as scalar integers.

Example: S12

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: gd = groupdelay (filter, frequency, 'Aperture', 50)

Width of two frequency points, specified as the comma-separated pair consisting of 'Aperture' and a real, positive, numerics scalar or vector.

Example: 'Aperture',50

Data Types: double

Impedance of S-parameters, specified as the comma-separated pair consisting of 'Impedance' and a real positive numeric scalar. The default impedance values for different objects are:

  • 50 — LC ladder and circuit objects

  • obj.impedance — S-parameter objects

  • obj.networkdata.impedance — N-port objects

Example: 50

Data Types: double

Output Arguments

collapse all

Group delay, returned as a numeric scalar in seconds.

Introduced in R2015b