AbstractOne of the major new concepts in 5G cellular communications is a shift in the way services are delivered to users. In the new 5G protocol, individual users are recognized and tracked through beams, which are targeted and specific to individual users. The millimeter‐wave (mmWave) communications impose a directionality which results in a significant challenge in serving mobile terminals and unmanned aerial vehicles. This challenge can be relieved in mmWave systems using analog beamforming. Based on the identification of the patterns in the reference signal received power (RSRP) measurements, some classifications are employed. Some trajectories are defined for different users in Hallways. Therefore, the angle of arrival (AoA) would be the same for the users following the same trajectory. The users based on the received RSRP values are clustered by K‐means and I‐Kmeans algorithms. To this end, our algorithms to find the beamforming coefficient are employed for only one user in each cluster and the complexity of the algorithms can be lower. The proposed algorithms are spatial frequency‐based beam tracking and angular domain beam tracking algorithms. Simulation results show that tracking the sine function of AoA achieves better performance compared to tracking the AoA. Moreover, the optimal number of clusters is obtained by using the Elbow method.