www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/typename.m

    function s = typename(con) %#ok con is never used
%TYPENAME Get type (class name) for a constraint object
%
%  STR = TYPENAME(CON)
%
%  This method should be overloaded by all sub-classes of CONBASE.
%
%  See also CONBASE.

%  Copyright 2000-2007 The MathWorks, Inc.

if ~strcmpi( class( con ), 'conbase' ),
    warning(message('mbc:conbase:InvalidState', upper( mfilename ), class( con )));
end

s = 'Abstract Constraint';

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|