Main Content

.NET Assembly Basics

Integrate .NET assemblies into applications

Integrating compiled MATLAB® functions into a .NET application is similar to using any standard .NET assembly. The main difference is that the generated interfaces require that data be passed as MWArray objects.

C# API Documentation

Functions .NET assembly for deployment outside MATLAB for building .NET assemblies
enableTSUtilsfromNetworkDriveSets the trust setting to load .NET assemblies from network drive


MATLAB Compiler SDK .NET Target Requirements

Things you should know and tasks you should perform before completing the tutorials in this chapter

Common Integration Tasks and Naming Conventions

Integration tasks performed by most users

Integrate a .NET Assembly Into a C# Application

How to call a .NET assembly from a C# application.

Integrate a .NET Assembly Into a Visual Basic Application

An example showing code for a simple Visual Basic® .NET application

Create a .NET Core Application That Runs on Linux and macOS

Example on how to create a .NET core application that can run on Linux®

Error Handling and Resources Management

How to handle an error generated by MATLAB and manage resources explicitly

Block Console Display When Creating Figures

How to handle interaction in a console-based program that creates MATLAB figures

Enhanced XML Documentation Files

Information about enhanced documentation included with every deployed .NET assembly