Main Content

Selezione di .NET Core in MATLAB

Selezionare l'ambiente di runtime .NET 6 e superiore

MATLAB® supporta il caricamento di librerie compilate per .NET, incluso .NET Core e il framework Microsoft® .NET solo sulla piattaforma Microsoft 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 impostazione predefinita, l'ambiente di runtime è impostato per utilizzare il framework Microsoft .NET. Per modificare l'ambiente, utilizzare la funzione dotnetenv. Le informazioni sull'ambiente .NET sono persistenti in diverse sessioni di MATLAB.

Per selezionare l’ambiente di runtime di .NET Core, digitare:

netDate = System.DateTime.Now; % Load .NET
ne = dotnetenv("core")
ne = 

  NETEnvironment with properties:

            Runtime: core
             Status: loaded
            Version: ".NET 6.0.25"
    RuntimeLocation: "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.25\"

Funzioni

dotnetenvChange .NET default environment on Microsoft Windows platforms (Da R2022b)

Oggetti

NETEnvironment.NET environment information (Da R2022b)

Argomenti