摘要
MATLAB具有很强的数值计算能力,而VisualC#具有强大的图形用户界面的开发能力,两者的互补结合可以快速和高效地开发专业计算软件。为此,以实例的方式展示了由MATLAB生成C共享库,并在VisualC#中调用此C共享库来实现两者之间的混合编程。另外,对在VisualC#中调用C共享库时的一些需要注意的问题进行了讨论,并给出了外部程序调用由MATLAB生成的C共享库的一般步骤。实例证明通过C共享库来实现MATLAB与VisualC#混合编程的方法是行之有效的。
Many kinds of professional software are able to perform complicated calculation and have friendly graphical user interface. MATLAB has strong ability of numerical value calculation, whereas visual C# has powerful ability of developing the software with graphical user interface, the combination of MATLAB and visual C# can develop the professional software of complicated calculation rapidly and efficiently. Therefor, an example is constructed to demonstrate the mixed programming with a C shared library made in MATLAB and called in visual C#. Some problems on how to call C shared library are discussed and common steps are presented which all programs that call MATLAB Compiler-generated shared libraries have. The method of hybrid programming with MATLAB and visual C# based on C shared library is proved to be effective.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第14期2689-2690,F0003,共3页
Computer Engineering and Design