Is there another example of invoking MATLAB as an automation server using VB.NET?

6 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 May 2023
Edited: MathWorks Support Team on 29 May 2023
Below is another example of calling GetFullMatrix from VB.NET. This is without adding a MATLAB reference in the VB.NET project:
Dim MatLab As Object
Dim Result As String
Dim MReal(1, 3) As Double
Dim MImag(1, 3) As Double
Dim RealValue As Double
MatLab = CreateObject("matlab.application")
Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")
Call MatLab.GetFullMatrix("a", "base", MReal, MImag)

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing 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!