The first step is to select a C compiler in MATLAB. Though the MATLAB C
compiler (lex) cannot generate object code for the MPC 5553, it is an effective tool at
figuring out syntax errors in your C code before you begin the final build process.
At the MATLAB prompt, enter “mex -setup”
When asked, select the Lex C compiler (should be option 1). This should then cause
an error because a valid input file was not specified. Ignore this error, as the purpose
of this step was to merely select a compiler, which is now done.