Main Content

Getting Started with Microsoft .NET

Examples and concepts to help you quickly get started using .NET in MATLAB®

The interface to .NET allows you to bring .NET assemblies into the MATLAB environment, to construct objects from classes contained in the assemblies, and to call methods on these objects.

MATLAB supports loading libraries compiled for the Microsoft® .NET Framework on the Microsoft Windows® platform only. For information about .NET versions compatible with MATLAB, see MATLAB Interfaces to Other Languages.

To determine if your system has a supported version, use the NET.isNETSupported function.

Functions

NET.addAssemblyMake .NET assembly visible to MATLAB
NET.isNETSupportedCheck for supported Microsoft .NET Framework
NETSummary of functions in MATLAB .NET interface
enableNETfromNetworkDrive(To be removed) Enable access to .NET commands from network drive

Classes

NET.AssemblyMembers of .NET assembly

Objects

NET.NetExceptionCapture error information for .NET exception

Topics

Troubleshooting

Troubleshooting Security Policy Settings from Network Drives

For MATLAB releases R2012b or earlier, call the enableNETfromNetworkDrive function to create a MATLAB security policy entry.

Limitations to .NET Support

.NET features not supported in MATLAB.

Limitations to Support of .NET Arrays

.NET features not supported in MATLAB.

Limitations to Support of .NET Methods

.NET features not supported in MATLAB.

Limitations to Support of .NET Events

.NET features not supported in MATLAB.

Limitations to Support of .NET Delegates

.NET features not supported in MATLAB.

Limitations to Support of .NET Enumerations

.NET features not supported in MATLAB.