1. 程式人生 > >【 MATLAB 】zplane 函式介紹(離散時間系統的零極圖)

【 MATLAB 】zplane 函式介紹(離散時間系統的零極圖)

zplane

Zero-pole plot for discrete-time systems

Syntax

zplane(b,a)

zplane(b,a), where b and a are row vectors, first uses roots to find the zeros and poles of the transfer function represented by the numerator coefficients b and the denominator coefficients a.

zplane(b,a),其中b和a是行向量,首先使用根來找到由分子係數b和分母系數a表示的傳遞函式的零和極點。

ba — Transfer function coefficients row vectors

Transfer function coefficients, specified as row vectors. The transfer function is defined in terms of z^–1:

例子:

已知一因果系統差分方程:

y(n) = 0.9 y(n - 1) + x(n);

使用zplane函式畫出零極點圖:

題解:有差分方程即可看出傳遞函式的分子和分母系數,之後應用zplane函式即可畫出零極點圖:

clc;clear;close all;

b = [1,0];
a = [1,-0.9];

zplane(b,a);

暫時只用到了上面的,下面的語法用到了再查。

zplane(z,p)

[hz,hp,ht] = zplane(___)

zplane(d)

[vz,vp,vk] = zplane(d)

Description

zplane(z,p) plots the zeros specified in column vector z and the poles specified in column vector p in the current figure window. The symbol 'o' represents a zero and the symbol 'x'represents a pole. The plot includes the unit circle for reference.

If z and p are matrices, then zplane plots the poles and zeros in the columns of z and p in different colors.

[hz,hp,ht] = zplane(___) returns vectors of handles to the zero lines, hz, and the pole lines, hpht is a vector of handles to the axes/unit circle line and to text objects, which are present when there are multiple zeros or poles.

zplane(d) finds the zeros and poles of the transfer function represented by the digital filter, d. Use designfilt to generate d based on frequency-response specifications. The pole-zero plot is displayed in fvtool.

[vz,vp,vk] = zplane(d) returns the zeros (vector vz), poles (vector vp), and gain (scalar vk) corresponding to the digital filter d.