The model of a radio-frequency waveguide was built. The interaction potential of Rb cold atoms with the magnetic field in the radio-frequency waveguide was analyzed. When an electric current is input into the coils of the waveguide, the potential depth at the center axis of the coils is about 1 mK. Such kind of waveguide can confine the cold atoms whose temperature is 100 K along the radial direction and guide them along the axial direction. The potential field in the waveguide changes as the input current changes. The force that the waveguide exerts on the atoms along the axis of the waveguide is 1.710-23 N, tenfold the gravity of a Rb atom.