Summary
This chapter showed two automatic code generation approaches: generating code from m script with MATLAB Coder and generating code from a Simulink model with the BeagleBoard built-in support in Simulink. A demo of a data-processing algorithm (averaging) is implemented in m script. Several audio processing demos demonstrate the advantages of MATLAB/Simulink-based rapid prototyping. In particular, we have learned how to build a custom hardware driver block for BeagleBoard.
We can move onto our first MATLAB/Simulink project for a more practical project, the rapid prototyping of a motion detector for a smart home.