Population_gen_cum = data.Population_gen_cum;
Score_gen_cum = data.Score_gen_cum;
[Min, index]=min(Score_gen_cum);
H_min=Population_gen_cum(index,1)/10;
cs_min=Population_gen_cum(index,2);
rho_s_min=Population_gen_cum(index,3)/100;
cb_min=Population_gen_cum(index,4);
rho_b_min=Population_gen_cum(index,5)/100;
D_min=Population_gen_cum(index,6)/10;
indx=Score_gen_cum<=(Min+err_bnd);
H=Population_gen_cum(indx,1)/10;
cs=Population_gen_cum(indx,2);
rho_s=Population_gen_cum(indx,3)/100;
cb=Population_gen_cum(indx,4);
rho_b=Population_gen_cum(indx,5)/100;
D=Population_gen_cum(indx,6)/10;
HH = [min(H); mean(H); max(H)];
css = [min(cs); mean(cs); max(cs)];
rhoss= [min(rho_s); mean(rho_s); max(rho_s)];
cbb = [min(cb); mean(cb); max(cb)];
rhobb= [min(rho_b); mean(rho_b); max(rho_b)];
DD = [min(D); mean(D); max(D)];
H_xy = linspace(min(H),max(H),1000) ;
cs_xy = linspace(min(cs),max(cs),1000) ;
rhos_xy = linspace(min(rho_s),max(rho_s),1000) ;
[H_X,cs_Y] = meshgrid(H_xy,cs_xy) ;
H_cs_Z = griddata(H,cs,Z,H_X,cs_Y) ;
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
[cs_X,rhos_Y] = meshgrid(cs_xy,rhos_xy) ;
cs_rhos_Z = griddata(cs,rho_s,Z,cs_X,rhos_Y) ;
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
surf(cs_X, rhos_Y, minZ*ones(size(cs_rhos_Z)), cs_rhos_Z)
surf(cs_Y, maxY*ones(size(H_cs_Z)), H_X, H_cs_Z);
[H_X,rhos_Y] = meshgrid(H_xy,rhos_xy) ;
H_rhos_Z = griddata(H,rho_s,Z,H_X,rhos_Y) ;
Warning: Duplicate data points have been detected and removed - corresponding values have been averaged.
surf(maxX*ones(size(H_rhos_Z)), rhos_Y, H_X, H_rhos_Z)