printf routine.
#include "mex.h"
void mexPrintf(format,...)
char *format;
arg1,arg2...formatprintf routine already linked inside MATLAB, and avoids linking the entire stdio library into your MEX-file. Alternatively, you can just use the standard C library call printf, since this is linked via a macro to mexPrintf in mex.h.(c) Copyright 1994 by The MathWorks, Inc.