function varargout = warning(varargin)

if nargin == 1 && isstruct(varargin{1})
    for j = 1:length(varargin{1})
        w = varargin{1}(j);
        builtin('warning',w.state,w.identifier);
    end
else
    [varargout{1:nargout}] = builtin('warning',varargin{:});
end


