Build and host your website with us as easy as you like.

Friday, November 23, 2007

Achieving Interoperability between VB.NET & MATLAB

‘MATLAB’…. Might sound bit strange to most of you, but its logic is no strange to any other popular programming language. MATLAB is somewhat a high level language written in Java & widely used to write scientific applications. Me & my team used this interesting language to develop an iris based human recognition system for our final year research project of SLIIT.
Halfway through we faced a number of issues when using MATLAB at the frontend due to its lack of support for GUI. So we opted to use VB.NET at the frontend & use MATLAB to develop the backend application. Each module was implemented as a function and called by the VB app. as follows. I believe this is the easiest method to build a GUI based MATLAB system as VB is extremely high level & doesn’t even refer to a single additional namespace to call functions implemented at the backend.

Dim MatLab As Object
MatLab = CreateObject("Matlab.Application") // the MATLAB object
result = MatLab.Execute("cd 'C:\ISSS NN'") // path where file is located
result = MatLab.Execute("match") //execute the file

No comments: