view examples/myhello.c @ 6022:abd750456740

Added tag ss-2-9-9 for changeset 60f9ced8ab53
author jwe@segfault.lan
date Fri, 01 Feb 2008 22:26:07 -0500
parents e884ab4f29ee
children 4270ded9ddc6
line wrap: on
line source

#include "mex.h"

void
mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
  mxArray *v = mxCreateDoubleMatrix (1, 1, mxREAL);

  double *data = mxGetPr (v);

  *data = 1.23456789;

  plhs[0] = v;
}