The class must have a default constructor. It's also the only kind of constructor you can call from MATLAB.
| 20 | // The class must have a default constructor. It's also the only kind of constructor |
| 21 | // you can call from MATLAB. |
| 22 | example_class() |
| 23 | { |
| 24 | xx.set_size(3,2); |
| 25 | xx = 1; |
| 26 | } |
| 27 | |
| 28 | // The rest of the member functions that you want to bind have to return void and |
| 29 | // generally have the same syntax limitations as regular mex funcitons. |