Main Content

NET.isNETSupported

Check for supported version of Microsoft .NET

Description

tf = NET.isNETSupported returns logical 1 (true) if a supported version of Microsoft® .NET is found. Otherwise, it returns logical 0 (false) and you cannot use .NET in MATLAB®.

MATLAB supports loading .NET assemblies, including:

  • .NET Framework (Microsoft Windows®)

  • .NET, including .NET Core (Microsoft Windows, macOS, and Linux®)

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.

For information about using the .NET environment in MATLAB, see dotnetenv and NETEnvironment.

example

Examples

collapse all

if ~NET.isNETSupported
    disp('Supported .NET interface not found')
end

Extended Capabilities

Version History

Introduced in R2013a