Main Content

Use MATLAB Structures in .NET

The MathWorks.MATLAB.Types.MATLABStruct class enables you to:

  • Create a MATLABStruct object in .NET and pass it to MATLAB®.

  • Convert a MATLAB struct object to MATLABStruct and convert a MATLAB struct array to MATLABStruct[,,...].

This C# example code shows how to interact with MATLAB structs from a C# application. To build and run this example, see Test Your .NET Development Environment.

 StructExample.cs

See Also

Topics