|
"dai " <279711585@qq.com> wrote in message
news:h0lae1$evf$1@fred.mathworks.com...
> Hi. Now I wish to build some m-files into dll for accelerating my
> programs. But one of my m.file is including a matlab built-in function
> 'log'. Then it turn out to be wrong in my c++ programs called:'Undefined
> function or method 'log' for input arguments of type 'int32'.'
>
> please give me some help to solve this problem.
The LOG function isn't defined for variables of class int32. Convert the
data you're passing into LOG into a data type that LOG accepts (single or
double precision) or implement your own LOG function for variables of class
int32. The former is going to be easier than the latter [what's
log(int32(5))? It should probably be an integer, but log(int32(5)) is not
an integer value, so you'll need to determine how you want to do this.]
--
Steve Lord
slord@mathworks.com
|