home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 8.ddi / SIGNAL.DI$ / COMB.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  632 b   |  21 lines

  1. function comb(x,y,linetype)
  2. %COMB    Plot discrete sequence data.
  3. %    COMB(Y) plots the data sequence Y as stems from the x-axis
  4. %    terminated with circles for the data value.
  5. %    COMB(X,Y) plots the data sequence Y at the values specified
  6. %    in X.
  7. %    There is an optional final string argument to specify a line-type
  8. %    for the stems of the data sequence.  E.g. COMB(X,Y,'-.') or
  9. %    COMB(Y,':').
  10.  
  11. disp('This usage of comb(...) is obsolete and will be eliminated')
  12. disp('in future versions. Please use stem(...) instead.')
  13. if nargin == 1
  14.     stem(x);
  15. elseif nargin == 2
  16.     stem(x,y);
  17. elseif nargin == 3
  18.     stem(x,y,linetype);
  19. end
  20.  
  21.