Why does GetFullMatrix not work when MATLAB is invoked as an Automation server from my Visual Basic .NET application?
I am invoking MATLAB as an Automation server from my Visual Basic .NET application using the COM/ActiveX support feature of MATLAB. I can send data from VB .NET to MATLAB successfully using PutFullMatrix function. However, if I try to receive data using GetFullMatrix function, I receive only zeros even though MATLAB has valid data for the variable.
GetFullMatrix works only if I have the following code in my VB .NET application:
OPTION Strict OFF
I would like to have GetFullMatrix work with OPTION Strict set to ON.
The problem appears to be only specific to GetFullMatrix function.
Best Answer