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
PATRICK LU wrote in message <7jrv32$iga$1...@netnews.upenn.edu>...
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.
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.