Вы находитесь на странице: 1из 25

ASSIGNMENT 3 INTRODUCTION OF CONTROL SYSTEM TOOL BOX

1st order System: Transfer Function :


Example-1
>> num = [ 1 ]; >> den = [2 3]; >> s = tf(num,den) Transfer function: 1 ------2s+3 This command defines the system s with transfer function num/den

Bode plot:
>> bode(s) This command gives Bode Plot of system s

Nyquist plot:
>> nyquist(s) system s This command gives Nyquist Plot of

Root locus plot:


>> rlocus(s) This command gives Root Locus of system s

Nicholas plot:
>> nichols(s) system s This command gives Nichols Chart of

Gain margin, phase margin, gain crossover frequency and phase crossover frequency:
>> [gm, pm, wg, wp] = margin(s) gm = Inf pm = Inf wg = NaN wp = NaN Represents Phase Cross Over Frequency Represents Gain Cross Over Frequency Represents Phase Margin Represents Gain Margin

Step response:
>>step(s) s This command gives Step Response of system

Impulse response:
>> impulse(s) of system s This command gives Impulse Response

Example-2:
>> num = [ 1 ]; >> den = [1 3]; >> s = tf(num,den) Transfer function: 1 ----s+3

>> bode(s)

>> nyquist(s)

>> rlocus(s)

>> nichols(s)

>> [gm, pm, wg, wp] = margin(s) gm = Inf pm = Inf wg = NaN wp = NaN

impulse(s)

step(s)

2nd Order System: Transfer Function :


Example-1:
>> num = [1]; >> den = [1 3 4]; >> s = tf(num,den) Transfer function: 1 -------------

s^2 + 3 s + 4 >> bode(s)

>> nyquist(s)

>> rlocus(s)

>> nichols(s)

>> [gm, pm, wg, wp] = margin(s) gm = Inf pm = Inf wg = Inf wp = NaN

>> step(s)

>> impulse(s)

Example-2:
>> num = [1 1]; >> den = [1 3 2]; >> s = tf(num,den) Transfer function: s+1 ------------s^2 + 3 s + 2

>> bode(s)

>> nyquist(s)

>> rlocus(s)

>> nichols(s)

>> [gm, pm, wg, wp] = margin(s) gm = Inf pm = Inf wg = NaN wp = NaN

>> step(s)

>> impulse(s)

Вам также может понравиться