Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
03bfd6f3
Commit
03bfd6f3
authored
Feb 04, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified instructions
parent
eeb6ffa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
README.txt
dlib/matlab/README.txt
+1
-1
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