Updating the Embedded MATLAB function.

The model still doesn't compile.

Signed-off-by: Fabrizio Schiano <fabrizio.schiano@gmail.com>