MATLAB code

 
 

Individual files

Figure3_7.m
CalculateChemicalPotential.m
PotentialProfileWithPoissonB.m