Main Content


Check for supported version of Microsoft .NET



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 libraries compiled for .NET, including .NET Core, and the Microsoft .NET Framework on the Microsoft Windows® platform 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.

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


collapse all

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

Extended Capabilities

Version History

Introduced in R2013a