?? exp4_1.m
字號:
%exp4_1.m
clear
clc
close all
%系統描述
a=[1 2 -1 2;2 6 3 0;4 7 -8 -5;7 2 1 6];
b=[-1 0 0 1]';
c=[-2 5 6 1];d=7;
%求系統的零極點
[z,p,k]=ss2zp(a,b,c,d)
%檢驗零點的實部;求取零點實部大于零的個數
ii=find(real(z)>0)
n1=length(ii);
%檢驗極點的實部;求取極點實部大于零的個數
jj=find(real(p)>0)
n2=length(jj);
%判斷系統是否穩定
if(n2>0)
disp('the system is unstable')
disp('the unstable pole are:')
disp(p(jj))
else
disp('the system is stable')
end
%判斷系統是否為最小相位系統
if(n1>0)
disp('the system is a nonminimal phase one')
else
disp('the syetem is a minimal phase one')
end
%繪制零極點圖
pzmap(p,z)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -