www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@userinfoeditor/doSetLabels.m

    function doSetLabels(h)
%DOSETLABELS  set the labels for edit controls
%  
%  h.doSetLabels;
%

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.



Nctrl = length(h.Inputs);
if Nctrl
   str=h.Labels(:);
   if length(str)>Nctrl
      str=str(1:Nctrl);
   elseif length(str)<Nctrl
      str(end+1:Nctrl) = {''};
   end
   set(h.Inputs,{'String'},str(:));
end