.NET Methods in MATLAB - MATLAB & Simulink (original) (raw)
Use .NET methods in MATLABĀ®, method signatures, arguments by reference, optional arguments
These topics describe information specific to calling .NET methods. For general information about calling methods on objects in MATLAB, see Method Syntax.
Topics
- 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 anout
keyword in the argument list. - Call .NET Methods With ref Keyword
This example shows how to call methods that use aref
keyword in the argument list. - Call .NET Methods With params Keyword
This example shows how to call methods that use aparams
keyword in the argument list. - Call .NET Methods with Optional Arguments
This example shows how to use default values in optional arguments using theGreeting
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 theoptional<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.