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.
"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...
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Disclaimer prior to use.