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[,,...].

For an example showing how to interact with MATLAB structs from a C# application, open StructExample.cs. You can build and run this code as described in Test Your .NET Development Environment.

See Also

Related Topics