Why does GetFullMatrix not work when MATLAB is invoked as an Automation server from my Visual Basic .NET application?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Write COM Applications to Work with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!