Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 22, 2003
Messages
4
Location
US
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

Back
Top