function str = defnum(nos,sym,nu)
% DEFNUM  Sets Default channel names
%
%   STRING = DEFNUM(OLDSTRING,SYMBOL,NUMBER)
%
%   Example: OLDSTRING = {'Hello';'Hi';'Good_Morning'}
%            DEFNUM(OLDSTRING,'me',5) gives 
%            STRING = {'Hello';'Hi';'Good_Morning';'me4';'me5'}
%
%            DEFNUM(OLDSTRING,'me',2) gives
%            STRING = {'Hello';'Hi'}

%   Copyright 1986-2000 The MathWorks, Inc.
%   $Revision: 1.7 $ $Date: 2000/08/24 12:53:42 $

str=nos;
EmptyStr ={''};
if length(nos)>nu
   str=nos(1:nu,1);
elseif length(nos)<nu
   str = cell(nu,1);
   if ~isempty(nos)
      str(1:length(nos),1) = nos;
      end
   if isempty(sym)
      ld = EmptyStr(ones(nu-length(nos),1),1);
      str(length(nos)+1:nu,1) = ld;
   else
      for k=length(nos)+1:nu
         %if isempty(sym)
         % str{k,1} ='';
         %else
         str{k,1}=[sym,int2str(k)];
         
         %end
      end
   end
end

   
   
   