Hi again,
I don't have matlab so I can't test any examples for you.
Use the open and print statements in VB to make a new .m file.
Call matlab with the file as parameter. See faq222-428 on how to make VB wait until the process is finished.
You'll have to make the .m file so that the output is saved to a file and then read the file from VB if you want to retrun a result.
Why do you use VB? Can't you just use matlab or C++, which integrates much better with Matlab?
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'