Our aim is the construction of a general purpose portable device with possible applications in materials science, biology, environmental science and medicine. In this note, we present a new design of a hand-size elliptical permanent magnet suitable for unilateral NMR spectroscopy and one-dimensional (1D) MRI. We optimized the magnet configuration to get a penetration depth of up to 1 cm and 1D imaging capabilities.