dotnetenv
Description
MATLAB® supports loading these .NET assemblies:
.NET, including .NET Core (Microsoft® Windows®, macOS, and Linux®)
.NET Framework (Windows only)
For details, see System Requirements for Using MATLAB Interface to .NET. 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. To change the .NET Runtime environment, call
dotnetenv
.
ne = dotnetenv
returns details about the current .NET Runtime
environment as a NETEnvironment
object.
ne = dotnetenv(
changes the default .NET
Runtime environment used to load .NET assemblies in MATLAB. The run-time environment is initialized when you call functions in either
env
)NET
or System
packages. If .NET is already loaded,
restart MATLAB before using this syntax.
ne = dotnetenv(
specifies parameters for setting the .NET Runtime environment. For example, you can specify
the numerical .NET version for env
,Name=Value
)"core"
applications and the target
frameworks to load.