Jerry Avins <jya@ieee.org> writes:> Randy Yates wrote: >> "chriselba" <ehp4987@hotmail.com> writes: > >>> ... But matlab gives me this coefficients with a real format >> >> Exactly what format is that? There are several common formats for >> representing numbers on a computer: >> >> 1. unsigned binary >> 2. signed two's complement >> 3. 32-bit IEEE-754 floating point 4. 64-bit IEEE-754 floating >> point >> >> There is no "real" format that I know of. > > "Real" is a common euphemism for "float". That's unfortunate. It leads > people to thing they are really numbers.That's like saying "kilometers" is a euphemism for "miles." If it is, the euphemeteers ought to be shot! -- % Randy Yates % "She tells me that she likes me very much, %% Fuquay-Varina, NC % but when I try to touch, she makes it %%% 919-577-9882 % all too clear." %%%% <yates@ieee.org> % 'Yours Truly, 2095', *Time*, ELO http://www.digitalsignallabs.com
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →
coefficients filter FIR
Started by ●February 21, 2009
Reply by ●February 22, 20092009-02-22
Reply by ●February 22, 20092009-02-22
On Feb 21, 3:53�pm, "chriselba" <ehp4...@hotmail.com> wrote:> Hi all, > > I'm designing a filter FIR. I looked for the coefficients with FDATOOL. > But to implement this filter I have to multiply this coefficients with a > binary input (12 bits) but the coefficients aren't binary code. Can I > convert them to a binary format? > > Thanks,I think MathWorks would like for you to also buy their fixed-point toolbox so that it can do the conversion for you ;-). Or, you can learn about fixed-point arithmetic, think about the basic problem statement, and try to do the conversion yourself. Good luck, Julius
Reply by ●February 22, 20092009-02-22
Randy Yates wrote:> Jerry Avins <jya@ieee.org> writes:>>"Real" is a common euphemism for "float". That's unfortunate. It leads >>people to thing they are really numbers.> That's like saying "kilometers" is a euphemism for "miles." If it is, > the euphemeteers ought to be shot!As far as I know, it was done by the original Fortran compiler writers over 50 years ago. Some might be still alive. I do think that FLOAT make more sense, as PL/I did about 40 years ago. (PL/I has the REAL keyword, for variables that are not COMPLEX, but they can be integer, or even scaled fixed point.) Fortran, since the addition of COMPLEX variables, has had the REAL intrinsic function for the real part of a complex variable, with the FLOAT function to convert to floating point. With a later Fortran standard (I believe Fortran 90), the REAL intrinsic function was added to do the conversion, though FLOAT is still there, too. -- glen
Reply by ●February 23, 20092009-02-23
Glen Herrmannsfeldt <gah@ugcs.caltech.edu> writes:> Randy Yates wrote: > >> Jerry Avins <jya@ieee.org> writes: > >>>"Real" is a common euphemism for "float". That's unfortunate. It leads >>>people to thing they are really numbers. > >> That's like saying "kilometers" is a euphemism for "miles." If it is, >> the euphemeteers ought to be shot! > > As far as I know, it was done by the original Fortran compiler > writers over 50 years ago. Some might be still alive. > > I do think that FLOAT make more sense, as PL/I did about 40 years ago. > (PL/I has the REAL keyword, for variables that are not COMPLEX, but > they can be integer, or even scaled fixed point.) > > Fortran, since the addition of COMPLEX variables, has had the > REAL intrinsic function for the real part of a complex variable, > with the FLOAT function to convert to floating point. > > With a later Fortran standard (I believe Fortran 90), the REAL > intrinsic function was added to do the conversion, though FLOAT > is still there, too.My perspective stands adjusted. Thank you, Glen. It doesn't remove the inconsistency, but the sope of usage matters. -- % Randy Yates % "...the answer lies within your soul %% Fuquay-Varina, NC % 'cause no one knows which side %%% 919-577-9882 % the coin will fall." %%%% <yates@ieee.org> % 'Big Wheels', *Out of the Blue*, ELO http://www.digitalsignallabs.com







