Diameter functions of UGC and ESO galaxies.