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

    function actions = pGetActions(obj, names)
%PGETACTIONS Private method to get the actions from the dialog.
%
%   ACTIONS = PGETACTIONS(OBJ, NAMES)

%   Copyright 2007 The MathWorks, Inc.

if nargin==1
    actions = struct2cell( obj.Actions );
else
    if ischar( names )
        names = {names};
    end
    actions = cellfun( @(n)obj.Action.(n), names, 'UniformOutput', false );
end
actions = [actions{:}];