From T1 is right, from T4 you can take too, Cercanias Line C1, to Chamartin is faster.
http://www.aena-aeropuertos.es/csee/Sate.../1237554326802/