Martin drove in two runs for the Dodgers, who have won two of their last three contests.
"The only time I didn't reach base was when I drove in the winning run, which is okay," Martin said. "We've lost a couple of close games, so it was time we won one like this."
Third baseman Nomar Garciaparra suffered a calf injury on the play and was replaced by Martin, making his first major league appearance at the hot corner.
The game lasted 4 hours, 38 minutes. Chan Ho Park (1-0) got the win for Los Angeles; Takashi Saito took the loss for the Rockies.
Police: Sword-wielding man demanded free tacos
Couple calls 9-1-1 over missing hash browns; assault McDonanld's employees