| MATLAB Application Program Interface | Search  Help Desk |
| mexPrintf | See Also |
Fortran Syntax
subroutine mexPrintf(message) character*(*) message
Arguments
message% in your message, you must use %% in your message string since % has special meaning to mexPrintf. Failing to do so will cause unpredictable results.
Description
mexPrintf prints a character array on the screen and in the diary (if the diary is in use). It provides a callback to the standard C printf routine already linked inside MATLAB.
Note: Optional arguments to mexPrintf are not supported in Fortran.
See Also
mexErrMsgTxt