As is well-known, any ordinary differential equation in one dimension can be cast as the Euler-Lagrange equation of an appropriate Lagrangian. Additionally, if the initial equation is autonomous, the Lagrangian can always be chosen to be time-independent. In two dimensions, however, the situation is more complex, and there exist systems of ODEs which cannot be described by any Lagrangian. In this paper we display Hamiltonians which describe the behaviour of a charged particle moving in a plane under the combined influence of a constant electric field (in the plane) and a constant magnetic field (orthogonal to the plane) as well as a friction force proportional to the velocity ("cyclotron with friction").