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

interfacing VB and matlab...need advice

483 views
Skip to first unread message

PATRICK LU

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
Hi,

is there a way to get VB progs to call matlab routines? Right now, I'm
using VB as the gui for a spectrogram analyzer and matlab for the
intensive calculations, but both are working independently. Any advice on
how to integrate the two would be appreciated.

thanks,

Pat Lu

Neila Nessa

unread,
Jun 11, 1999, 3:00:00 AM6/11/99
to
Pat,
Isn't MATLAB OLE enabled? Take a look at the beast in the Obj Browser and
see what
bright flashes illuminate the grey matter ;-) If not OLE enabled can you
ferret out its menu
commands with Spy++ and send WM_COMMANDS where necessary or
Sendkeys/Pushkeys
where desperate???
Neila

PATRICK LU wrote in message <7jrv32$iga$1...@netnews.upenn.edu>...

Steve Johnson

unread,
Jun 12, 1999, 3:00:00 AM6/12/99
to

PATRICK LU wrote in message <7jrv32$iga$1...@netnews.upenn.edu>...
>Hi,
>
>is there a way to get VB progs to call matlab routines? Right now, I'm
>using VB as the gui for a spectrogram analyzer and matlab for the
>intensive calculations, but both are working independently. Any advice on
>how to integrate the two would be appreciated.
>
>thanks,
>
>Pat Lu

there's some documentation of this in the books. i've done it in matlab 5.2
and 5.3. i think the book is called "application programming guide" or
something like that.

from memory:

Dim Matlab as Object

Set Matlab = CreateObject("Matlab.Application")

'some of my code
Call Matlab.PutFullMatrix("outwavs", "base", outwavs, junkspec)
result = Matlab.Execute("[outspecs]=resamp(inwavs, inspecs, outwavs);")
Call Matlab.GetFullMatrix("outspecs", "base", outspecs, junkspec)

'clean up
Matlab.Quit
Set Matlab = Nothing

note that starting matlab will likely take longer than executing the code.
our solution has been to use matcom (www.mathtools.com) to translate matlab
to c++. works well, although matcom's recently gotten rather expensive.


thir...@my-deja.com

unread,
Jun 16, 1999, 3:00:00 AM6/16/99
to
Hi,

Can anyone tell me how to execute a matlab file directly of the web?
whenever i make a hperlink i get the matlab editor window opened
instead.

thiru


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

0 new messages