summaryrefslogtreecommitdiff
path: root/2048/CH9/EX9.4/desired.sci
blob: d84e6c9188c01a0560352da7b6a0a992934fcd23 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Calculation of desired closed loop characteristic polynomial, as discussed in Sec. 7.7.
// 9.4

// function [phi,dphi] = desired(Ts,rise,epsilon)
// Based on transient requirements, 
// calculates closed loop characteristic polynomial

function [phi,dphi] = desired(Ts,rise,epsilon)
Nr = rise/Ts; omega = %pi/2/Nr; rho = epsilon^(omega/%pi); 
phi = [1 -2*rho*cos(omega) rho^2]; dphi = length(phi)-1;
endfunction;