mexErrMsgTxt

Purpose

Issue error message and return to MATLAB.

C Synopsis

#include "mex.h"
void mexErrMsgTxt(error_msg)
  char *error_msg;

Fortran Synopsis

subroutine mexErrMsgTxt(error_msg)
character*(*) error_msg

Arguments

error_msg
character string with error message

Description

This routine performs an error return from your MEX-file and causes the MATLAB interpreter to display the specified message.

Memory allocated using mxCalloc (but not memory allocated with malloc or calloc) is freed automatically.

(c) Copyright 1994 by The MathWorks, Inc.