Variations of the coherent resonance, i.e. an electromagnetically induced transparency (EIT) peak with the cell temperature in Λ- and V-type systems are observed for the 85Rb-D2 transition. In a Λ-type system, the amplitude of the EIT peak gradually decreases and it is finally masked by the broadened optical pumping dips with the increase of the cell temperature. But for the V-type system, the EIT and the saturation peaks are greatly enhanced with the increase of the cell temperature. The effect of the external magnetic field on the EIT resonance is also investigated considering both types of systems. For the Λ-type system in place of a single EIT resonance, five transparency windows with broadened width and reduced contrast are obtained depending on the Zeeman levels formed by the applied magnetic field. In the V-type system, the coherent resonance peak could not be resolved in the presence of the external magnetic field, but a greater number of saturation peaks with broadened width appear in the probe transmission spectrum. A theoretical model is adopted to represent the experimental results. Good agreement is found between the experimental and numerically simulated results. © 2013 IOP Publishing Ltd.