Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MATLAB and VB

373 views
Skip to first unread message

Faisal Wahab

unread,
Mar 9, 1999, 3:00:00 AM3/9/99
to
Hi.

Could somebody tell me about MATLAB's connectivity with Visual Basic. I
just want VB for the interfacing.

Thank You
Faisal Wahab


Taras Chaban

unread,
Mar 9, 1999, 3:00:00 AM3/9/99
to
Hi,

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 ...

0 new messages