MATLAB 中的 .NET 方法
这些主题说明特定于调用 .NET 方法的信息。有关在 MATLAB 中对对象调用方法的一般信息,请参阅方法语法。
主题
- Calling .NET Methods
Use the following MATLAB functions to view the methods of a class.
- Work with .NET Methods Having Multiple Signatures
This example shows how to call a method that has multiple signatures.
- Call .NET Methods With out Keyword
This example shows how to call methods that use an
out
keyword in the argument list. - Call .NET Methods With ref Keyword
This example shows how to call methods that use a
ref
keyword in the argument list. - Call .NET Methods With params Keyword
This example shows how to call methods that use a
params
keyword in the argument list. - Call .NET Methods with Optional Arguments
This example shows how to use default values in optional arguments using the
Greeting
method. - Call .NET Properties That Take an Argument
MATLAB represents a property that takes an argument as a method.
- Calling .NET Methods with Optional Arguments
MATLAB displays optional arguments in a method signature using the
optional<T>
syntax, whereT
is the specific type. - Calling .NET Extension Methods
Unlike C# applications, MATLAB handles an extension method as a static method of the class that defines the method.
- How MATLAB Represents .NET Operators
MATLAB supports overloaded operators, such as the C# operator symbols
+
and*
, as shown in this table. - Limitations to Support of .NET Methods
.NET features not supported in MATLAB.