Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

phasez (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the filter design class.

Syntax

phasez(b)

phasez(b, a)

phasez(b, a, w)

phasez(b, a, w, fs)

phasez(b, a, n)

phasez(b, a, n, 'whole')

phasez(b, a, n, fs)

phasez(b, a, n, 'whole', fs)

h = phasez(b, a, w)

h = phasez(b, a, w, fs)

[h, f] = phasez(b)

[h, f] = phasez(b, a)

[h, f] = phasez(b, a, n)

[h, f] = phasez(b, a, n, 'whole')

[h, f] = phasez(b, a, n, fs)

[h, f] = phasez(b, a, n, 'whole', fs)

Description

Computes the phase response vector and the frequency vector of a filter. If you do not request an output, this function plots the unwrapped phase of the filter in the current plot window. phasez(b) is equivalent to phasez(b, [1], 512). phasez(b, a) is equivalent to phasez(b, a, 512).

Details

Examples

Inputs

Name Description
b Specifies the numerator coefficients of the filter. b is a vector.
a Specifies the denominator coefficients of the filter. a is a vector. The default is [1].
w Specifies the frequency points at which you want to evaluate the phase response. If you do not specify w, LabVIEW evaluates the phasez response at n points equally spaced around the upper half of the unit circle. w is a vector.
fs Specifies the sampling frequency in Hz. fs is a scalar.
n Specifies the number of frequency points. n is a positive integer. The default is 512.
'whole' Directs LabVIEW to evaluate the phase response at n points equally spaced around the unit circle.

Outputs

Name Description
h Returns the phase response vector of the filter. h is a real vector.
f Returns the discrete frequency vector in radians/sample that corresponds to h. f is a vector.

Details

This function is supported in the LabVIEW Run-Time Engine only if you request an output from the function. This function can remain in your scripts when you build a stand-alone application or shared library, but if you do not request an output, the LabVIEW Run-Time Engine does not execute this function. If you request an output, the LabVIEW Run-Time Engine executes this function as normal.

Examples

b = [1, 2];
a = [-1, 1, 1, 3];
n = 32;
[H, F] = phasez(b, a, n)

Related Topics

freqz
grpdelay
impz
phasedelay


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit