For Programmers: Free Programming Magazines  


Home > Archive > Matlab > January 2008 > Creation of simple HF filter...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Creation of simple HF filter...
Andrey Kazak

2008-01-21, 8:04 pm

Hallo!

Could you help me please to create a simple HF filter in
Matlab with the following frequency characteristic:

K(w)= A/(B+jw), where A and B real constants, j - imaginary
unit, w - circular frequency...

Thank you in advace for quick and clear help...
dvt

2008-01-31, 8:28 pm

Andrey Kazak wrote:
> Hallo!
>
> Could you help me please to create a simple HF filter in
> Matlab with the following frequency characteristic:
>
> K(w)= A/(B+jw), where A and B real constants, j - imaginary
> unit, w - circular frequency...
>
> Thank you in advace for quick and clear help...


Is the signal to be filtered in the frequency domain or time domain? If
it's in the frequency domain, here's some pseudocode...

w = 1:100; % vector of frequencies
sigspec = rand(1,100); % vector containing the spectrum of your signal
A = 10;
B = 10;
filtsig = sigspec .* (A ./ (B + 1j * w)); % filtered signal

If your signal is in the time domain, calculate the cutoff frequency of
your filter and use the BUTTER function to compute coefficients for your
low pass filter. Those coefficients can be passed into the FILTER
function along with your original signal to produce a time domain
filtered result.

--
Dave
dvt at psu dot edu
Paul

2008-01-31, 11:18 pm

"Andrey Kazak" <AK@nospam.ru> wrote in message
<fn2ega$etc$1@fred.mathworks.com>...
> Hallo!
>
> Could you help me please to create a simple HF filter in
> Matlab with the following frequency characteristic:
>
> K(w)= A/(B+jw), where A and B real constants, j - imaginary
> unit, w - circular frequency...
>
> Thank you in advace for quick and clear help...


help bilinear
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com