| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Compiler |
| Contents | Index |
| Learn more about MATLAB Compiler |
void libraryTerminate(void)
This function should be called after you finish calling the functions in this MATLAB Compiler-generated library, but before mclTerminateApplication is called.
Call libmatrixInitialize to initialize libmatrix library properly near the start of your program:
/* Call the library intialization routine and ensure the
* library was initialized properly. */
if (!libmatrixInitialize()){
fprintf(stderr,"Could not initialize the library.\n");
*err = -2;
}
else
...
Near the end of your program (but before calling mclTerminateApplication) free resources allocated by the MCR instance associated with library libmatrix:
/* Call the library termination routine */ libmatrixTerminate(); /* Free the memory created */ mxDestroyArray(in1); in1=0; mxDestroyArray(in2); in2 = 0; }
Library Initialization and Termination Functions
<library>Initialize[WithHandlers]

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |