Mercurial > hg > octave-nkf
comparison examples/mex_demo.c @ 18436:877b82d73ed9 stable
mex_demo.c: Fix incorrect comments describing how to run example.
* mex_demo.c: Fix incorrect comments describing how to run example.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 24 Jan 2014 09:11:01 -0800 |
parents | be41c30bcb44 |
children |
comparison
equal
deleted
inserted
replaced
18435:d1e16bdb3958 | 18436:877b82d73ed9 |
---|---|
8 // at the Octave prompt. Support for dynamic linking is included if | 8 // at the Octave prompt. Support for dynamic linking is included if |
9 // this expression returns the string "yes". | 9 // this expression returns the string "yes". |
10 // | 10 // |
11 // To compile this file, type the command | 11 // To compile this file, type the command |
12 // | 12 // |
13 // mkoctfile mex_demo.c | 13 // mkoctfile --mex mex_demo.c |
14 // | 14 // |
15 // from within Octave or from the shell prompt. This will create a file | 15 // from within Octave or from the shell prompt. This will create a file |
16 // called mex_demo.mex that can be loaded by Octave. To test the mex_demo.mex | 16 // called mex_demo.mex that can be loaded by Octave. To test the mex_demo.mex |
17 // file, start Octave and type the command | 17 // file, start Octave and type the command |
18 // | 18 // |
19 // [d] = mex_demo ("easy as", 1, 2, 3) | 19 // d = mex_demo ("easy as", 1, 2, 3) |
20 // | 20 // |
21 // at the Octave prompt. Octave should respond by printing | 21 // at the Octave prompt. Octave should respond by printing |
22 // | 22 // |
23 // Hello, world! | 23 // Hello, world! |
24 // I have 4 inputs and 1 output | 24 // I have 4 inputs and 1 output |