www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmTableSetupView/pUpdateAxisOrder.m

    function pUpdateAxisOrder(obj)
%PUPDATEAXISORDER Update order of axes to table
%
%  PUPDATEAXISORDER(OBJ) updates the GUI for the object to reflect the
%  current order of the inputs to the table.

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


if ~isempty(obj.MessageService) ...
        && length(obj.MessageService.AxisOrder)==2

    % Convert order to a cell that reflects the order x, y instead of
    % dim1, dim2, ...
    vals = num2cell(obj.MessageService.AxisOrder(end:-1:1));
    set([obj.hAxisLabel1.Control; ...
        obj.hAxisLabel2.Control;], ...
        {'Value'}, vals(:));
else
    set([obj.hAxisLabel1.Control; ...
        obj.hAxisLabel2.Control;], ...
        'Value', 1);
end