Executing Matlab code using Visual basic

  • Follow


Hi, 
I am using Visual Basic to develop a GUI. I need to execute Matlab in the background to process the stored data. How do I invoke the matlab application and execute an m-file using visual basic. Thanks in advance....
0
Reply Jaianand 4/14/2010 5:58:06 PM

"Jaianand " <jaianand@coolvirgo.com> wrote in message <hq4vne$rcd$1@fred.mathworks.com>...
> Hi, 
> I am using Visual Basic to develop a GUI. I need to execute Matlab in the background to process the stored data. How do I invoke the matlab application and execute an m-file using visual basic. Thanks in advance....

The MATLAB help file gives an example of how to do that.
Help....External Interfaces....MATLAB COM Automation Server Support... Examples of MATLAB Automation Server.

After going through the example, design a simple form to perform a simple operation, then  the sky is the limit.

If you are at least average in visual basic, then you will not have any problems.
0
Reply ade77 4/14/2010 10:36:04 PM


I used to do the same. GUI in VB and math in Matlab. I found that the best way (for me) is compiling matlab routines into .dll and use it with a program written in VB. 
Advantage is simple: you do not have to have Matlab installed on the client computer and run-time engine files freely distributed. Disadvantage (not really) -you can not change matlab code 'on fly'. 
0
Reply Sergei 5/20/2010 7:27:03 PM

2 Replies
644 Views

(page loaded in 0.035 seconds)

Similiar Articles:













7/23/2012 7:07:04 AM


Reply: