Mercurial > hg > octave-lyh
view examples/firstmexdemo.c @ 15312:d81105896288
m-editor: open a new file from the directory of the last active tab
* file-editor-tab.cc, file-editor-tab.h: new get_file_name method & open_file with a directory
* file-editor.cc: request_open_file with the path to the last active file
author | Thorsten Liebig <thorsten.liebig@gmx.de> |
---|---|
date | Tue, 04 Sep 2012 22:34:48 +0200 |
parents | 6cb30a539481 |
children |
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; }