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

root/gliderproc/trunk/MATLAB/opnml/VIZICQ4_1.2/GetSize.c

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

Initial import of Stark code.

Line 
1 #include "matrix.h"
2
3 void
4 mexFunction(int nlhs,mxArray *plhs[],int nrhs,const mxArray *prhs[])
5 {
6  int number_of_dims, c;
7  const int  *dim_array;
8
9     number_of_dims = mxGetNumberOfDimensions(prhs[0]);
10     dim_array = mxGetDimensions(prhs[0]);
11     for (c=0; c<number_of_dims; c++)
12        mexPrintf("%d\n", *dim_array++);
13 }
Note: See TracBrowser for help on using the browser.