0001
0002
0003 close all
0004 clearvars
0005
0006 addpath(genpath('../General-Functions'))
0007
0008
0009 A = 0;
0010 B = 0;
0011 C = 0;
0012
0013
0014 N = 1000;
0015
0016
0017
0018 distribution = 'f';
0019 density = @fpdf;
0020 npar = 2;
0021 A = 53;
0022 B = 1000000;
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 switch npar
0037 case 1
0038 x = random(distribution,A,N,1);
0039 case 2
0040 x = random(distribution,A,B,N,1);
0041 end
0042
0043 ss = plot_init;
0044 figure('Color','w','Position',[20 ss(2)/2-100 ss(1)/2 ss(2)/2]);
0045 hold on
0046
0047 sugr_plot_histogram_density(x,density,npar,A,B,C);
0048