-
Notifications
You must be signed in to change notification settings - Fork 0
/
mu_hdd.m
42 lines (42 loc) · 1.01 KB
/
mu_hdd.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Robustness analysis of the Hard Disk Drive Servo System
%
clp_ic = lft(sys_ic,K,1,1);
w = logspace(3,5,100);
clp_g = ufrd(clp_ic,w);
%
% robust stability analysis
opt = robopt('Display','on');
[stabmarg,destabu,report,info] = robuststab(clp_g,opt);
stabmarg
report
figure(1)
semilogx(info.MussvBnds(1,1),'r-',info.MussvBnds(1,2),'b--')
grid
title('Robust stability')
xlabel('Frequency (rad/s)')
ylabel('mu')
legend('\mu-upper bound','\mu-lower bound')
%
% nominal performance
w = logspace(2,5,100);
figure(2)
sv = sigma(clp_ic.Nominal,w);
sys_frd = frd(sv(1,:),w);
semilogx(sys_frd,'r-')
grid
title('Nominal performance')
xlabel('Frequency (rad/s)')
%
% robust performance
w = logspace(3,5,100);
opt = robopt('Display','on');
[perfmarg,perfmargunc,report,info] = robustperf(clp_g,opt);
perfmarg
report
figure(3)
semilogx(info.MussvBnds(1,1),'r-',info.MussvBnds(1,2),'b--')
grid
title('Robust performance')
xlabel('Frequency (rad/s)')
ylabel('mu')
legend('\mu-upper bound','\mu-lower bound')