matlabdef.cpp
来自「C#平台调用matlab函数定义」· C++ 代码 · 共 25 行
CPP
25 行
public class matLib
{
//the define to see the other one
//mlfPrint(string)
[DllImport( "libmatlb.dll", CallingConvention=CallingConvention.Cdecl)]
public static extern int mlfPrintf(string fmt);
//only for test, will be deleted
//mlfPrint(format, string)
[DllImport( "libmatlb.dll", CallingConvention=CallingConvention.Cdecl)]
public static extern int mlfPrintf(string fmt,string str);
//only for test, will be deleted
//mlfPrint(format, double)
[DllImport( "libmatlb.dll", CallingConvention=CallingConvention.Cdecl)]
public static extern int mlfPrintf(string fmt,double db);
[DllImport( "libmatlb.dll", CallingConvention=CallingConvention.Cdecl)]
public static extern void mlfPrintMatrix(mxArray[] ri);
[DllImport( "libmatlb.dll", CallingConvention=CallingConvention.Cdecl)]
public static extern IntPtr mlfDoubleMatrix(int m, int n, double[] pr, double[] pi);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?