So-called cone effect or focus anisoplanatism is produced by the limited distance of a laser guide star (LGS) which is created within the Earth atmosphere and consequently located at a finite distance from the observer. We believe this is the first time to investigate the cone effect of the LGS by means of a pure numerical simulation. In this paper, the cone effect of the LGS for different vertical profiles of the refractive index structure constant 2 n C is numerically investigated by using a revised computer program of atmospheric propagation of optical wave and an adaptive optics (AO) system including dynamic control process. It is surprisingly found that the effect of altitudes of the LGS on the AO phase compensation effectiveness by using the commonly-available vertical profiles of 2 n C and the lateral wind speed in the atmosphere is relatively weak, and the cone effect for some 2 n C profiles is even negligible. It is found that the cone effect seems not have obvious relationship with the turbulence strength, however, it depends on the vertical distribution profile of 2 n C apparently. On the other hand, the cone effect depends on the vertical distribution of the lateral wind speed as well. The cone effect becomes more obvious as the zenith angle increases. In comparison to a near infrared wavelength, the cone effect becomes larger in the case of the visible wavelength. In all cases concerned in this paper, an AO system by using a sodium guide star has almost same phase compensation effectiveness as that by using the astronomical target itself as a beacon.