摘要:The rogue waves of the nonlinear Schrödinger equation with time-dependent linear potential function are investigated by using the similarity transformation in this paper. The first-order and second-order rogue waves solutions are obtained and the nonlinear dynamic behaviors of these solutions are discussed in detail. In addition, the amplitudes of the rogue waves under the effect of the gravity field and external magnetic field changing with the time are analyzed by using numerical simulation. The results can be used to study the matter rogue waves in the Bose-Einstein condensates and other fields of nonlinear science.