summaryrefslogtreecommitdiffstats
path: root/ml/dlib/dlib/matlab/example.m
diff options
context:
space:
mode:
Diffstat (limited to 'ml/dlib/dlib/matlab/example.m')
-rw-r--r--ml/dlib/dlib/matlab/example.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/ml/dlib/dlib/matlab/example.m b/ml/dlib/dlib/matlab/example.m
new file mode 100644
index 000000000..8ed47346b
--- /dev/null
+++ b/ml/dlib/dlib/matlab/example.m
@@ -0,0 +1,16 @@
+% This example calls the three mex functions defined in this folder. As you
+% can see, you call them just like you would normal MATLAB functions.
+
+x = magic(3)
+y = 2*magic(3)
+
+[out1, out2] = example_mex_function(x,y, 12345)
+
+z = example_mex_callback(x, @(a)a+a)
+
+
+input = {}
+input.val = 2
+input.stuff = 'some string'
+output = example_mex_struct(input)
+