I have a C# .NET assembly (MATLABWriter.dll) project with the following code:
namespace MATLABWriter { public class WriterClass { public void Write() { System.Console.Write("Hello, world!"); } } }
I have loaded the .NET DLL in MATLAB using the NET.addAssembly command:
>> NET.addAssembly("MATLABWriter.dll");>> writerObj = MATLABWriter. WriterClass;
The Write() method has a call to System.Console.Write to write the specific text out to the command window.
However, if I execute the Write() method, MATLAB does not print the text:
>> writerObj.Write
Is there a way to write this text to the MATLAB command window?
Best Answer