Matlab and Arduino Mega 2560

Nothing in part one changes which pins can be PWM'd, and part two could be anything, as there is no context to it.