mxArray编写可用于 MATLAB® 的 C/C++ 程序
|Type for MATLAB engine|
|Start MATLAB engine session|
|Start MATLAB engine session for single, nonshared use|
|Quit MATLAB engine session|
|Evaluate expression in string|
|Copy variable from MATLAB engine workspace|
|Put variable into MATLAB engine workspace|
|Determine visibility of MATLAB engine session|
|Show or hide MATLAB engine session|
|Specify buffer for MATLAB output|
What to do to start building C or Fortran engine applications.
使用 MATLAB 作为计算引擎，从您自己的 C 和 Fortran 程序中调用 MATLAB。
创建一个 C 引擎应用程序
This example shows how to attach an engine program to a MATLAB session that is already running.
Design user interface callbacks to be evaluated in the context of the base workspace.
At run time, tell the operating system where the API shared libraries are by setting
Path environment variable.
This example shows how to verify the build process on Windows® platforms using the C example
This example shows how to run the C example,
engwindemo.c, from the Windows system prompt.
Register MATLAB for every session, to ensure that the current version of MATLAB is the registered version.
Tell the operating system where the API shared libraries are by setting the
DYLD_LIBRARY_PATH environment variable.
This example shows how to verify the build process on a macOS platform.
This example shows how to run the C example
engdemo.c from the macOS Terminal Window.
What to do when MATLAB engine does not run.
How to verify MATLAB functions used in engine applications.
Some MATLAB functions that interact with the user are not supported in engine applications.
MATLAB libraries are not thread-safe.