www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@axisslider/doString.m

    function doString(h)
%DOSTRING Set the string for the axis label
%
%  H.DOSTRING;

%  Copyright 2013 The MathWorks, Inc. and Ford Global Technologies, Inc.
if strcmp(h.Orientation, 'vertical')
    mbcxlabel(h.Axes, '');
    mbcylabel(h.Axes, h.String);
else
    mbcxlabel(h.Axes, h.String);
    mbcylabel(h.Axes, '');
end