Prev: fminsearch error
Next: Looping with symbols
From: Amish Rughoonundon on 12 May 2010 16:33 Hi I've tried to create an executable in vain. 1) Here is the code in the m file: <CODE> function fixedPointHexNumber = fixedPointHexNumber(number, hexDigits, fixedPointFractional) if str2num(fixedPointFractional) >= str2num(hexDigits)*4 fixedPointHexNumber = 'ERROR: Fractional part cannot be greater or equal (due to sign bit) to hexDigits*4'; else fiNumber = fi(str2double(number), true, str2num(hexDigits)*4, str2num(fixedPointFractional)); intfiHexNumber = fiNumber.hex(); fixedPointHexNumber = sprintf(intfiHexNumber); end </CODE> I used the following to create the executable: mcc -m -d ./matlab_compiled/ fixedPointHexNumber When I tried to run the executable in a command prompt, I get the following: ??? Undefined function or method 'fi' for input arguments of type 'double'. Error in ==> fixedPointHexNumber at 5 MATLAB:UndefinedFunction I am a newb at matlab and completely lost. Thanks for any help, Amish
From: ImageAnalyst on 12 May 2010 16:55 Take a look at this line in your code: fiNumber = fi(str2double(number), true, str2num(hexDigits)*4, str2num(fixedPointFractional)); Can you tell me what fi() is? Is it a function, or a variable? Well neither I, nor the executable seem to know.
From: Walter Roberson on 12 May 2010 17:17 ImageAnalyst wrote: > Take a look at this line in your code: > > fiNumber = fi(str2double(number), true, str2num(hexDigits)*4, > str2num(fixedPointFractional)); > > Can you tell me what fi() is? Is it a function, or a variable? Well > neither I, nor the executable seem to know. Sounds like something from the Fixed-Point Toolbox. http://www.mathworks.com/products/ineligible_programs/ "ineligible for use on" the matlab compiler.
From: Amish Rughoonundon on 12 May 2010 17:44 Walter Roberson <roberson(a)hushmail.com> wrote in message <0WEGn.1304$Ak3.1240(a)newsfe16.iad>... > ImageAnalyst wrote: > > Take a look at this line in your code: > > > > fiNumber = fi(str2double(number), true, str2num(hexDigits)*4, > > str2num(fixedPointFractional)); > > > > Can you tell me what fi() is? Is it a function, or a variable? Well > > neither I, nor the executable seem to know. > > Sounds like something from the Fixed-Point Toolbox. > > http://www.mathworks.com/products/ineligible_programs/ > > "ineligible for use on" the matlab compiler. Thanks a lot, I didn't realize some toolboxes could not be used with the compiler. Amish
|
Pages: 1 Prev: fminsearch error Next: Looping with symbols |