root/applications/dual/SIDP/SIDPS/motor_sidps/mc_study.m
@
1327
Revision 1249, 403 bytes (checked in by zimamiro, 14 years ago) |
---|
Line | |
---|---|
1 | function mc_study(system,apriori,n) |
2 | |
3 | losses=zeros(2,n); |
4 | for i=1:n |
5 | system.x=apriori.H(:,1)+sqrt(diag(apriori.H(:,2:5))).*randn(4,1); |
6 | losses(:,i)=srovnej(system,apriori); |
7 | end |
8 | losses(2,:)=losses(2,:)./losses(1,:); |
9 | |
10 | |
11 | %hist(losses(1,:)); |
12 | %title([mean(losses(1,:)) median(losses(1,:))]) |
13 | %AXIS([0 5 ylim]) |
14 | |
15 | figure |
16 | hist(losses(2,:)); |
17 | title([mean(losses(2,:)) median(losses(2,:))]) |
18 | |
19 | end |
Note: See TracBrowser
for help on using the browser.