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

    classdef phaseresp < dspdata.abstractfiltfreqrespMCOS
  %dspdata.phaseresp class
  %   dspdata.phaseresp extends dspdata.abstractfiltfreqresp.
  %
  %    dspdata.phaseresp properties:
  %       Name - Property is of type 'String' (read only)
  %       Data - Property is of type 'mxArray' (read only)
  %       NormalizedFrequency - Property is of type 'bool'
  %       Fs - Property is of type 'mxArray' (read only)
  %       Frequencies - Property is of type 'double_vector user-defined' (read only)
  %       SpectrumRange - Property is of type 'SignalFrequencyRangeList enumeration: {'Half','Whole'}'
  %
  %    dspdata.phaseresp methods:
  %       gettitle -   Get the title.
  %       getylabel -   Get the ylabel.
   
  methods  % constructor block
    function this = phaseresp(varargin)
      %PHASE   Construct a PHASE object.
      
      %   Author(s): J. Schickler
      
      narginchk(0,8);
      
      % Create and initialize object.
      % this = dspdata.phaseresp;
      
      set(this,'Name','Phase');
      
      % Construct a metadata object.
      set(this,'Metadata',dspdata.powermetadataMCOS);
      set(this.Metadata,'FrequencyUnits','Hz');
      % From the help of TFESTIMATE and MSCOHERE we are deducing that there are
      % no units for the magnitude:
      %
      % The magnitude squared coherence Cxy is given by
      %         Cxy = (abs(Pxy).^2)./(Pxx.*Pyy)
      set(this.Metadata,'DataUnits','');
      
      % Initialize Data and Frequencies with defaults or user specified values.
      initialize(this,varargin{:});
      
      
    end  % phase
    
  end  % constructor block
  
  methods  %% public methods
    function titlestr = gettitle(this)
      %GETTITLE   Get the title.
      
      titlestr = getString(message('signal:dspdata:dspdata:PhaseResponse'));
      
    end
    
    
    function ylbl = getylabel(this)
      %GETYLABEL   Get the ylabel.
      
      ylbl = getString(message('signal:dspdata:dspdata:Phaseradians'));
      
    end    
    
  end  %% public methods
  
end  % classdef