|
Hi Regina, if you want to have an FIR pre-emphasis (boost high frequncies) filter, you can filter your input as:
y=filter([1 -0.90],1,x);
where x is the input vector.
To see that this is a high pass filter, you can run:
fvtool([1 -0.90],1)
of course I just picked a value for the coefficient on z^{-1} close to 1. You can play with that a little to get the filter you want.
hope that helps,
wayne
"Regina " <velasquezregina@rocketmail.com> wrote in message <gpa0nd$b0q$1@fred.mathworks.com>...
> hi!
>
> does anyone know how to do a pre-emphasis filter
> it will be used for a vector (1xN double array) containing values computed from a bounding box aspect ratio.
>
> the formula for the pre-emphasis filter is this:
>
> H(z) = 1-az^-1
>
> with a chosen empirically to be = 1.0
>
> i hope someone can help me code this.
>
> thanks!
|