www.gusucode.com > signal 工具箱matlab源码程序 > signal/private/psdmarktone.m

    function psdmarktone(hLine, fscale, primaryFreq, primaryPow, auxFreq, auxPow)
%PSDMARKTONE Helper function for plotting power and psd estimates.
%   If called with just primary tones, mark with solid inverted triangle
%   If additionally called with auxiliary tones, mark with hollow inverted
%   triangle

%   Copyright 2013 The MathWorks, Inc.

color = get(hLine,'Color');
line(primaryFreq*fscale, primaryPow, ...
  'Parent',ancestor(hLine,'axes'), ...
  'Color',color, ...
  'Marker','v', ...
  'MarkerSize',6, ...
  'MarkerFaceColor',color, ...
  'LineStyle','none');

if nargin>4
  line(auxFreq*fscale, auxPow, ...
    'Parent',ancestor(hLine,'axes'), ...
    'Color',color, ...
    'Marker','v', ...
    'MarkerSize',6, ...
    'LineStyle','none');
end