NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/MEX/what_is_NaN.c

Revision 495 (checked in by cbc, 11 years ago)

Initial import of Stark code.

Line 
1 #include <math.h>
2 #include <stdio.h>
3 #include "mex.h"
4
5 /************************************************************
6
7   ####     ##     #####  ######  #    #    ##     #   #
8  #    #   #  #      #    #       #    #   #  #     # #
9  #       #    #     #    #####   #    #  #    #     #
10  #  ###  ######     #    #       # ## #  ######     #
11  #    #  #    #     #    #       ##  ##  #    #     #
12   ####   #    #     #    ######  #    #  #    #     #
13
14 ************************************************************/
15
16
17 void mexFunction(int            nlhs,
18                  mxArray       *plhs[],
19                  int            nrhs,
20                  const mxArray *prhs[])
21 {
22
23    double NaN=mxGetNaN();
24    fprintf(stdout,"%lf\n",NaN);
25    return;   
26 }
Note: See TracBrowser for help on using the browser.