| Embedded MATLAB™ | ![]() |
| On this page… |
|---|
Embedded MATLAB MEX automatically generates reports in HTML format when errors or warnings occur at compile time. You can use these reports for debugging your M-code and verifying compliance with Embedded MATLAB semantics and syntax.
Embedded MATLAB MEX describes errors and warnings in HTML reports at the following location:
output_directory/mexfcn/ primary_function_name/html/ primary_function_name_report.html
Note The default output directory is emcprj, but you can specify a different directory with the -d option (see emlmex). |
Embedded MATLAB MEX automatically reports errors and warnings. If errors occur during compilation, Embedded MATLAB MEX does not generate C-MEX code. If compilation produces warnings, but no errors, Embedded MATLAB MEX does generate C-MEX code, but displays the warning messages.
Reports present error and warning messages in two views:
List view (default)
For example:

Tree view
For example:

In either view, the Location link brings you to the offending code in the source file, while the Message link highlights the location of the offending code in the source listing, as in this example:

![]() | Compiling Your M-File | Calling C Functions from the Embedded MATLAB Subset | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |