Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
03bfd6f3
Commit
03bfd6f3
authored
Feb 04, 2016
by
Davis King
Browse files
Clarified instructions
parent
eeb6ffa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
dlib/matlab/README.txt
dlib/matlab/README.txt
+1
-1
dlib/matlab/example.m
dlib/matlab/example.m
+7
-1
No files found.
dlib/matlab/README.txt
View file @
03bfd6f3
This folder contains a set of tools which make it easy to create MATLAB mex
functions. To understand how they work, you should read the
example_mex_function.cpp and example_mex_callback.cpp examples.
example_mex_function.cpp
, example_mex_struct.cpp,
and
example_mex_callback.cpp examples.
To compile them, you can use CMake. In particular, from this folder execute
these commands:
...
...
dlib/matlab/example.m
View file @
03bfd6f3
% This example calls the t
wo
mex functions defined in this folder. As you
% This example calls the t
hree
mex functions defined in this folder. As you
% can see, you call them just like you would normal MATLAB functions.
x
=
magic
(
3
)
...
...
@@ -8,3 +8,9 @@ y = 2*magic(3)
z
=
example_mex_callback
(
x
,
@
(
a
)
a
+
a
)
input
=
{}
input
.
val
=
2
input
.
stuff
=
'some string'
output
=
example_mex_struct
(
input
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment