主要内容

使用。net方法有多个签名

创建NetSample大会,看到为MATLAB构建. net应用程序的例子

SampleMethodSignature类定义了三个构造函数如下表所示。

返回类型 的名字 参数
netdoc。SampleMethodSignature obj SampleMethodSignature
netdoc。SampleMethodSignature obj SampleMethodSignature (双标量d)
netdoc。SampleMethodSignature obj SampleMethodSignature (系统。字符串)

SampleMethodSignature

显示函数签名的例子

如果您还没有加载NetSample组装、类型:

NET.addAssembly (c: \ \ NetSample.dll工作)

创建一个SampleMethodSignature对象obj:

obj = netdoc.SampleMethodSignature;

方法签名,类型:

方法(obj,“全”)

MATLAB中寻找以下签名®输出:

netdoc。SampleMethodSignature obj SampleMethodSignature netdoc。SampleMethodSignature objSampleMethodSignature(双标量d)netdoc。SampleMethodSignature obj SampleMethodSignature(系统。字符串)

关于参数类型的更多信息,请参阅处理数据从。net对象返回