help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting the frequency response of a filter in "real" Hz


From: Maynard Wright
Subject: Re: Plotting the frequency response of a filter in "real" Hz
Date: Fri, 22 Apr 2016 17:25:40 -0700
User-agent: KMail/4.13.3 (Linux/3.16.0-30-generic; KDE/4.13.3; i686; ; )

> @ Maynard Wright
> 
> I should have been more specific when I said I had just started in
> filter desing. This is a course for a Computer Engineering degree.
> Which means that I will deal with filter design until 18th of May, and
> then I'll probably forget about it for the rest of my life. While this
> course is provided by an Electric Engineering teacher, since we don't
> have any Electric Engineering students this semester, our teacher have
> encouraged us to stick to the built in functions to solve problems and
> we barely scratched the surface of the mathematics involved.
> 
> Having said that, I have no idea where is the filter in the code you posted.

The filter is in the line

 loss = abs((12000 ./ (12000 .+ 1j .* w)) .^ 7);

It's an arbitrary, "pulled from air" low pass filter that I stuck in the code 
(not necessarily easily realizable) to provide a relatively flat passband and a 
sharp cutoff to illustrate the effect of scaling the x axis from radian 
frequency to frequency in Hz.   You should be able to use the scaling 
technique (divide by 2 * pi) with the amplitude response of any filter.

Maynard Wright





reply via email to

[Prev in Thread] Current Thread [Next in Thread]