deploytool_C#(deploytool的使用)

>> deploytool

 

C#中调用:

引入动态链接库 MWArray.dll

路径:D:\Program Files\MATLAB\R2011b\toolbox\dotnetbuilder\bin\win32\v2.0\MWArray.dll

 

引入动态链接库matlab2donet.dll上面编译生成的。

 

usingSystem;

usingSystem.Collections.Generic;

usingSystem.Linq;

usingSystem.Text;

 

usingMathWorks.MATLAB.NET.Arrays;

usingMathWorks.MATLAB.NET.Utility;

 

usingmatlab2dotnet;

 

namespacematlab2dotnet

{

    classProgram

    {

        static void Main(string[] args)

        {

            doublef=2.0;

            Class_matlab2dotnet class_dotnet=new Class_matlab2dotnet();

            class_dotnet.class_netbuider_func((MWNumericArray)f);//需要数据类型转化

 

            Console.ReadLine();

        }

    }

}

 

 

 

posted on 2012-10-05 21:31  daxiaoyuyu  阅读(524)  评论(0)    收藏  举报

导航