HyperMath

BlockFrfPhase

BlockFrfPhase

Previous topic Next topic No expanding text in this topic  

BlockFrfPhase

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The phase angle of a Frequency Response Function (FRF) calculated using blocking.  There are two forms.

Note: This item is deprecated and will be removed in a future release.

Syntax

Phase = BlockFrfPhase(vec1, vec2, block_size, overlap)

Phase = BlockFrfPhase(vec1, vec2, window, overlap)

Arguments

Name

Description

 

vec1

A vector of input to a system.

 

vec2

A vector of output from a given system.

 

block_size

The number of elements to be used for each FRF (should be a power of 2).  Must be a positive integer and not greater than the length of vec1.

 

window

A vector of window weights to apply to each block.  Its length should be a power of 2.  This length is used as the block_size.

 

overlap

The number of elements shared between consecutive blocks.  Must be a non-negative integer and less than block_size.

Output

Name

Description

 

Phase

A vector of the phase angle spectrum of the FRF.

Example 1

Find the phase angles of the FRF between input vector input and output vector output, using a block size of 256 and an overlap of 128:

 

Syntax

 

output = BlockFrfPhase(input, output, 256, 128)

 

Results

 

output is a vector of the phase angles

Example 2

Repeat the above example with a Hanning window instead.

 

Syntax

 

output = BlockFrfPhase(input, output, HannWin(256), 128)

 

Results

 

output is a vector of the phase angles.

Comments

The BlockFrfPhase function uses blocking to calculate the phase angle of a Frequency Response Function (FRF). vec1 and vec2 are assumed to be evenly sampled.  The resultant vector has a number of elements equal to the least power of two greater than or equal to block_size.

The FRF is complex-valued and used to map time-domain data into the frequency domain.

The BlockFrfPhase function is different from a normal FRF in that it introduces blocking.  The input vector is subdivided into blocks, each having a block_size number of elements.  An FRF is then performed on each individual block.  The results of these FRFs are then averaged to give the final result.

See Also:

BlockFrfImag

BlockFrfMag

BlockFrfReal

Fold

Freq