root/applications/dual/SIDP/bakalarka/SIDPS/matlab/jednoduchy system/rid_y0.m @ 1351

Revision 1351, 1.0 kB (checked in by zimamiro, 13 years ago)
Line 
1function rid_y0(sidp_parameters, compare_parameters,system,apriori,N)
2a=0;
3b=0;
4m=3;
5col=['b' 'g' 'r' 'c' 'm'];
6n=10;
7quality=zeros(1,n+1);
8apriori.b0=0;
9apriori.P0=10;
10y_max=apriori.y0;
11figure
12for j=1:m;
13    q=0;
14    apriori.Hc=j-1;
15    sidp3(sidp_parameters, compare_parameters,system,apriori);
16    for i=0:n
17        q=q+1;
18        apriori.y0=i*y_max/n;
19        los=mc_study(system,apriori,N);
20        quality(q)=los(2)/los(3);
21    end
22    subplot(2,1,1);
23    plot((0:n)*y_max/n,quality(1,:),['',col(j)]); hold on
24    [H C]=load_H; 
25    subplot(2,1,2);
26    plot(H,C,['',col(j)]); hold on; a=max(a,max(C(:))); b=min(b,min(C(:)));   
27end
28
29subplot(2,1,1);
30xlabel('\fontsize{18} y_0'); ylabel('\fontsize{18} relativn�tr�');
31legend('0)','1)','2)','3)');
32set( get(gcf, 'Children'), 'FontSize', 18);
33
34subplot(2,1,2);
35xlabel('\fontsize{18} \beta'); ylabel('\fontsize{18} \nu^{ (2)}_0');
36set(gca,'ylim',[b a]);
37set(gca,'xlim',[0 H(end)]);
38end
Note: See TracBrowser for help on using the browser.