Could somebody tell me about MATLAB's connectivity with Visual Basic. I
just want VB for the interfacing.
Thank You
Faisal Wahab
You can call MATLAB from VB using ActiveX interface. A simple example could
be:
Sub tot1()
Dim MatLab As Object
Dim Result As String
Dim MReal(1, 3) As Double
Dim MImag() As Double
Set MatLab = CreateObject("MatLab.Application")
Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")
Call MatLab.GetFullMatrix("a", "base", MReal, MImag)
End Sub
However, if you want to use VB just for interface, I would suggest using
MATLAB GUIs. This will be simpler as you can avoid using ActiveX. MATLAB has
a tool called GUIDE that should help you building your interface.
Hope this helps.
Taras
Faisal Wahab wrote in message ...