DSPRelated.com
Forums

fixed point modelling problem

Started by elbib00 April 6, 2005
hi

i m trying out fixed point modelling via the 'fi' function in matlab.
everything seems smooth until i tried to exponent the 'fi' object.
 
error msg: 'function exp is not defined for values of class
embedded.fi'
 
applying the exponential function, 'exp', is essiential for my
project. anyone knows how to get ard this prob?
 
cheers
		
This message was sent using the Comp.DSP web interface on
www.DSPRelated.com
elbib00 wrote:

> hi > > i m trying out fixed point modelling via the 'fi' function in matlab. > everything seems smooth until i tried to exponent the 'fi' object. > > error msg: 'function exp is not defined for values of class > embedded.fi' > > applying the exponential function, 'exp', is essiential for my > project. anyone knows how to get ard this prob? > > cheers > > This message was sent using the Comp.DSP web interface on > www.DSPRelated.com
Model the exponential that your fixed-point project will be using, and use it with the class embedded.fi. Or cast the embedded.fi object to floating point and do an exponent on that -- but only if it accurately models what your embedded software's going to do. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
thanx tim! i got it to work. u have been most helpful!


		
This message was sent using the Comp.DSP web interface on
www.DSPRelated.com