C # and matlab mixed programming
Use dll called mixed programming
First, source code examples are as follows:
After you've written matlab matlab code entry command deploytool in the command line, the pop-up window, select the third option:
After the interface is as follows, select the object is .NET Assembly, select the file to be compiled, setting the class name, defined for the platform version number, generate dll
This is the file we get where we need to import .dll dynamic link library, or you can import XXNative.dll, you said that the operating efficiency of query the file will be higher, not verified.
You will want to run directly out of an exception,
Reported that the file can not be found MWArray.dl, this time need to manually to find the introduction, this file is usually installed in the Runtime file folder directory matlab
MATLAB Runtime\v901\toolbox\dotnetbuilder\bin\win64\v2.0
Of course, this needs to be installed MCRinstaller.exe, its location installation directory under R2016a \ toolbox \ compiler \ deploy in matlab \ win64
Then right solution -> Properties -> Build -> Platform objectives and your generated dll is consistent X64 or X86
Run is successful