Batting in the second innings, Assam were 71 for one at close at the Nehru stadium.
Martin crafted a patient 126, studded with 14 hits to the fence and one six, made in 338 balls, as he managed to ward off a spirited Assam attack.
Assam spinners Sukhbinder Singh (3/70) and Arland Konwar (3/109) toiled hard on a placid pitch as Martin stood as a rock while tail enders contributed their bit to the total.
Rakesh Patel continued to show fine form as he followed his good bowling performance (4/82) in the first innings with a useful 35 with former India wicketkeeper Nayan Mongia and Rajesh Pawar contributing 21 each.
Brief scores: Assam first innings: 273 (Parag Das 66; Patel 4/82). Second innings: 71 for one.
Baroda first innings: 347 all out (Martin 126).