C#, ActiveX Server

Create an Active X server using C#, using MATLAB as the client, hook into events and pass arrays ...

You are now following this Submission

Interfaces a C# generated dll to MATLAB using the COM interface. Currently the .NET platform is not supported by MATLAB as such to connect to C# requires the use of COM technology. The code makes an ActiveX server using C#, this server has a single event that functions in a similar way to the ddeexec function; this event passes a string to a wrapper for the eval function. Using this event an example user written function is called. Examples are provided on calling C# methods from MATLAB and passing vectors, arrays and scalers to and from C# and MATLAB. The code provides a solid basis from with users can build a more complicated interface to C# without writing C wrappers. MATLAB and C# source code is included.

Cite As

Alexander Cave (2026). C#, ActiveX Server (https://www.mathworks.com/matlabcentral/fileexchange/8274-c-activex-server), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0