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 the .NET Framework on the Windows® platform only.
NET.addAssembly | Make .NET assembly visible to MATLAB |
NET.isNETSupported | Check for supported Microsoft .NET Framework |
NET | Summary of functions in MATLAB .NET interface |
enableNETfromNetworkDrive | (To be removed) Enable access to .NET commands from network drive |
NET.Assembly | Members of .NET assembly |
NET.NetException | Capture error information for .NET exception |
This example shows how to access .NET functionality already installed on your system.
This example shows you how to make .NET classes visible to MATLAB.
Work with Microsoft Excel Spreadsheets Using .NET
This example uses the
Microsoft.Office.Interop.Excel.ApplicationClass
class to
create a spreadsheet, copy MATLAB data to it, and then close it.
Work with Microsoft Word Documents Using .NET
This example uses the
Microsoft.Office.Interop.Word.ApplicationClass
class to
create a Word document.
Build a .NET Application for MATLAB Examples
Basic information for building the .NET examples included with MATLAB.
Use the MATLAB import
function
to refer to .NET class names.
Use import in MATLAB Functions
Guidelines for using the NET.addAssembly
and import
functions.
Using reflection to instantiate a nested class.
MATLAB catches exceptions thrown by .NET and
converts them into a NET.NetException
object.
Assembly Is Library of .NET Classes
An assembly is a collection of types and resources built to work together and form a logical unit of functionality in .NET Framework applications.
System Requirements for Using MATLAB Interface to .NET
Using a supported version of the .NET Framework.
How you can benefit from using .NET from MATLAB.
How to create a .NET object.
Understanding namespaces and reference and value types.
Troubleshooting Security Policy Settings from Network Drives
For MATLAB releases R2012b or earlier, call
the enableNETfromNetworkDrive
function to create
a MATLAB security policy entry.
.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.