Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MATLAB COM Builder

Status
Not open for further replies.

Benxmarine

Marine/Ocean
Mar 21, 2013
2
Hello,
Small application for ship stability under matlab 6.5, i would like to build COM to connect it to main program under VB6.
The matlab application contain one .m file, one .fig file, and one Excel file for data.
Does any one knows how to build it for VB6 compiler.
Regards.


 
Replies continue below

Recommended for you

Actually, I should read my own link better... I think the mcc command with the -b option does what you want.

Compiler and Environment Options

-b (Visual Basic File). Generate a Visual Basic file (.bas) that contains the Microsoft Excel Formula Function interface to the Compiler-generated COM object.When imported into the workbook Visual Basic code, this code allows the MATLAB function to be seen as a cell formula function.
(
 
Hello,

I have found a tutorial for COM builder for Vb6, it running properly but in my case it is GUI application with .xls data, so in this tutorial they do not explain how to add .xls file.
Nb: my English is not excellent, native language is French.
regards.
 
 http://www.codeproject.com/Articles/6236/Building-COM-Components-Using-MATLAB-Part-I
Status
Not open for further replies.

Part and Inventory Search

Sponsor