Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mclGetLastErrorMessage

Last error message from unsuccessful function call

Synopsis

const char* mclGetLastErrorMessage() 

Description

This function returns a function error message (usually in the form of false or -1). It cannot catch the errors related to MATLAB® Runtime initialization and can catch only errors thrown by MATLAB functions or code.

Example

char *args[] = { "-nodisplay" };
if(!mclInitializeApplication(args, 1))
{
    fprintf(stderr, 
            "An error occurred while initializing: \n %s ",
            mclGetLastErrorMessage());
    return -1;
} 

Introduced in R2010b

Was this topic helpful?