www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptim/checkitemstatus.m

    function [status, msg] = checkitemstatus(optim, items)
%CHECKITEMSTATUS Check the status for specified items
%
%  [STATUS, MSG] = CHECKITEMSTATUS(OPTIM, ITEMS) returns a vector of status
%  codes and a cell array of associated messages, one for each optimization
%  item in ITEMS.
%
%  STATUS is a vector that contains integer codes indicating whether each
%  item is in an acceptable state.  A status of 0 indicates no problem, 1
%  indicates a warning issue and 2 indicates an critical problem.  MSG is a
%  cell array of strings that describes the problem and should be non-empty
%  for items that have a non-zero status.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


[status, msg] = pCheckItems(optim, items, 'Item');