Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

a problem in using COM Builder

Status
Not open for further replies.

lyrock

Automotive
Dec 22, 2003
4
Backgroud:

I just tried to compile a DLL file from COM Builder, in order to use it in a Visual Basic program.

the m file in Matlab is much simple, as follows:

function w=myBoxcar(n)
w=boxcar(n);


Trouble:

when I call the function in Visual Basic, the following warning came out:

Function 'floor' not defined for variables of class 'int16'!


Question:
1. whether the trouble can be solved or not?
2. when I want to compile some other functions in Matlab for using in VB, I also met such a trouble, whether some operaters(or function) in Matlab can't be legal or translated in VB, how to solve this?

Thanks
Good Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor