root/applications/dual/SIDP/Kopie (2) - finalni implementace/Copy of vyst.m @ 1153

Revision 1113, 3.9 kB (checked in by zimamiro, 14 years ago)
Line 
1function los=vyst4(regulator_parameters,system,apriori,N)
2los=zeros(4,3);
3
4%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5regulator_parameters.horizont=5;
6apriori.P0=1;
7apriori.b0=0;
8los(:,1)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
9
10apriori.b0=1;
11los(:,2)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
12
13apriori.b0=10;
14los(:,3)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
15
16figure
17
18bar(los,'grouped')
19colormap summer
20set(gca,'ylim',[0 10])
21
22title('\fontsize{18}  N = 5, P_0 = 1')
23legend('{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 0','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 1','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 10')
24set(gca,'xtick',[]);
25text(0.6,-0.5,'\fontsize{18} CEC')
26text(1.75,-0.5,'\fontsize{18} CC')
27text(2.65,-0.5,'\fontsize{18} SIDP')
28text(3.75,-0.5,'\fontsize{18} DP')
29set( get(gcf, 'Children'), 'FontSize', 18);
30text(-0.5,10,'\fontsize{18}<')
31
32%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33apriori.P0=10;
34apriori.b0=0;
35los(:,1)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
36
37apriori.b0=1;
38los(:,2)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
39
40apriori.b0=10;
41los(:,3)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
42
43figure
44
45bar(los,'grouped')
46colormap summer
47set(gca,'ylim',[0 10])
48
49title('\fontsize{18}  N = 5, P_0 = 10')
50legend('{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 0','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 1','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 10')
51set(gca,'xtick',[]);
52text(0.6,-0.5,'\fontsize{18} CEC')
53text(1.75,-0.5,'\fontsize{18} CC')
54text(2.65,-0.5,'\fontsize{18} SIDP')
55text(3.75,-0.5,'\fontsize{18} DP')
56set( get(gcf, 'Children'), 'FontSize', 18);
57text(-0.5,10,'\fontsize{18}<')
58
59%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
60regulator_parameters.horizont=10;
61apriori.P0=1;
62apriori.b0=0;
63los(:,1)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
64
65apriori.b0=1;
66los(:,2)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
67
68apriori.b0=10;
69los(:,3)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
70
71figure
72
73bar(los,'grouped')
74colormap summer
75set(gca,'ylim',[0 10])
76
77title('\fontsize{18}  N = 10, P_0 = 1')
78legend('{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 0','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 1','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 10')
79set(gca,'xtick',[]);
80text(0.6,-0.5,'\fontsize{18} CEC')
81text(1.75,-0.5,'\fontsize{18} CC')
82text(2.65,-0.5,'\fontsize{18} SIDP')
83text(3.75,-0.5,'\fontsize{18} DP')
84set( get(gcf, 'Children'), 'FontSize', 18);
85text(-0.5,10,'\fontsize{18}<')
86
87%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88apriori.P0=10;
89apriori.b0=0;
90los(:,1)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
91
92apriori.b0=1;
93los(:,2)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
94
95apriori.b0=10;
96los(:,3)=mc_study(regulator_parameters,system,apriori,N,[regulator_parameters.horizont 10 apriori.b0]);
97
98figure
99
100bar(los,'grouped')
101colormap summer
102set(gca,'ylim',[0 10])
103
104title('\fontsize{18}  N = 10, P_0 = 10')
105legend('{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 0','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 1','{}_{^{\fontsize{18}\theta}}^{\fontsize{16}\^}_{0} = 10')
106set(gca,'xtick',[]);
107text(0.6,-0.5,'\fontsize{18} CEC')
108text(1.75,-0.5,'\fontsize{18} CC')
109text(2.65,-0.5,'\fontsize{18} SIDP')
110text(3.75,-0.5,'\fontsize{18} DP')
111set( get(gcf, 'Children'), 'FontSize', 18);
112text(-0.5,10,'\fontsize{18}<')
113
114end
Note: See TracBrowser for help on using the browser.