The Argentine centre-back appeared to jar his right knee in a collision with Vladimir Coufal and momentarily left the field for treatment before returning to the pitch.
Clearly labouring as West Ham launched a quick counter attack, Martinez required attention again then made way for Raphael Varane as United closed out a comfortable 3-0 win at Old Trafford.