Hello David,
> [before={\startframedtext[width=\makeupwidth,
^^^^^^^^^^^^^^^^
and
> \startalignment[middle]
don't work together. Perhaps you can put your \startmatlab in a
framed box with specific width and frame=off.
P.
--
ConTeXt wiki: http://contextgarden.net