How can I run C# code in MATLAB?

45 visualizaciones (últimos 30 días)
Gauri Gupta
Gauri Gupta el 8 de Ag. de 2018
Comentada: Shahidul Asif el 8 de Mzo. de 2021
I have a simple C# programme written in Visual Studios and I would like to call it and run it from MATLAB.

Respuestas (1)

Lipi Vora
Lipi Vora el 10 de Ag. de 2018
Editada: Lipi Vora el 10 de Ag. de 2018
I understand that you would like to call your C# program from MATLAB.
To do so, you will have to first expose your C# code as a .NET library. Once this is done, you can call the .NET libraries from MATLAB using NET.addAssembly.
Here is the link to further documentation for using .NET libraries in MATLAB.
Hope this helps!
  1 comentario
Shahidul Asif
Shahidul Asif el 8 de Mzo. de 2021
How do I expose the codes as you mentioned?

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by