Undocumented Secrets of MATLAB
®
-Java Programming568
libmwmathutil.lib — a library providing access to all the basic math functions (sin, ◾
log, sqrt, etc.). Unfortunately, there is no corresponding header le.
libut.lib — a library with general-purpose functions, also without a header le.
◾
There are a few header les that are not directly related to any particular library: tmwtypes.h
provides denitions for data types; ntrf.h provides some denitions of pointer types and com-
patibility overrides of functions on old MATLAB releases; io64.h provides 64-bits I/O support
(i.e., for les larger than 2 GB).
So here now is the roadmap for connecting Java to MATLAB via JNI:
First, create a C-code le that wraps the functions in the aforeme ...