You will have to have a C compiler for matlab and then you can put the
C code on your device. Some of these compilers can be very expensive
and you'll have to experiment to see if you can do it with the basic
matlab compiler or if you'll have to get a 3rd party compiler like
greenhills. However lua is ridiculously easy to use so unless you've
got some extraordinary data crunching to do I would suggest just doing
everything in lua. Also drawing anything to the screen is best done
using the API commands provided in the ez command set, most of the
difficulty I have had was using these commands smoothly and
effectively.
~Chris Farmer