Contenuto principale

Come iniziare con Microsoft .NET

R2026b
Esempi e concetti per aiutare l'utente a iniziare rapidamente a usare .NET in MATLAB®

L'interfaccia di MATLAB a .NET consente di portare gli assiemi .NET nell'ambiente MATLAB per costruire oggetti dalle classi contenute negli assiemi e per chiamare i metodi su tali oggetti.

MATLAB supporta il caricamento di questi assiemi .NET:

  • .NET, compreso .NET Core (Microsoft® Windows®, macOS e Linux®)

  • Framework .NET (solo Windows)

Per maggiori informazioni, consultare System Requirements for Using MATLAB Interface to .NET. Per informazioni sulle versioni .NET compatibili con MATLAB, vedere MATLAB Interfaces to Other Languages (Interfacce di MATLAB ad altri linguaggi).

Per determinare se il sistema dispone di una versione supportata, utilizzare la funzione NET.isNETSupported.

Funzioni

NET.addAssemblyMake .NET assembly visible to MATLAB
NET.unloadAssemblyUnload .NET Core assembly from MATLAB (Da R2026a)
NET.isNETSupportedCheck for supported version of Microsoft .NET
NET.interfaceViewExplicit interface view of .NET object (Da R2023b)

Classi

NET.AssemblyMembers of .NET assembly

Oggetti

NET.NetExceptionCapture error information for .NET exception

Namespaces

NETSummary of functions and classes in MATLAB .NET interface

Argomenti

Risoluzione dei problemi

Resolve Error Using .NET Base Class: Undefined Function or Variable

Troubleshoot Undefined Function or Variable error with .NET classes.

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.