www.gusucode.com > signal 工具箱matlab源码程序 > signal/+dspdata/normalizefreq.m

    function normalizefreq(this)
%NORMALIZEFREQ   Normalize frequency specifications.
%
%   NORMALIZEFREQ is not recommended.
%   Use the following functions instead:
%      <a href="matlab:help periodogram">periodogram</a>
%      <a href="matlab:help pwelch">pwelch</a>
%      <a href="matlab:help pburg">pburg</a>
%      <a href="matlab:help pcov">pcov</a>
%      <a href="matlab:help pmcov">pmcov</a>
%      <a href="matlab:help pyulear">pyulear</a>
%      <a href="matlab:help pmtm">pmtm</a>
%      <a href="matlab:help peig">peig</a>
%      <a href="matlab:help pmusic">pmusic</a>
%
%   NORMALIZEFREQ(H) will normalize the frequency specifications of the DSP
%   data object (<a href="matlab:help dspdata">dspdata</a>) H. This sets the data object's
%   'NormalizedFrequency' property to true, and normalizes the Frequencies
%   by Fs, so that they lie between 0 and 1.
%
%   NORMALIZEFREQ(H,BFL) sets the 'NormalizedFrequency' property to the
%   value of the boolean flag, BFL, which can be either true or false. If
%   not specified, BFL defaults to true. If BFL is false, the frequencies
%   in the data object H will be converted to linear frequencies.
%
%   NORMALIZEFREQ(H,false,Fs) allows for the setting of a new sampling
%   frequency, Fs, when the 'NormalizedFrequency' property is set to false.
%
%   EXAMPLE: Use the periodogram to estimate the power spectral density of
%            % a noisy sinusoidal signal. Then store the results in a PSD
%            % data object, convert it to normalized frequency, and plot it.
%  
%            Fs = 32e3;   t = 0:1/Fs:2.96;
%            x = cos(2*pi*t*1.24e3)+ cos(2*pi*t*10e3)+ randn(size(t));
%            Pxx = periodogram(x);
%            hpsd = dspdata.psd(Pxx,'Fs',Fs) % Create a PSD data object.
%            normalizefreq(hpsd);            % Normalize frequencies.
%            plot(hpsd)

%   Author(s): P. Pacheco
%   Copyright 1988-2012 The MathWorks, Inc.

% Help for NORMAZLIZEFREQ method.

% [EOF]