www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@modelinput/end.m

    function e = end(A,k,n)
%END

%   Copyright 2007 The MathWorks, Inc.

s = size(A);

if n==1
    % Linear indexing is handled differently
    e = prod(s);
else
    e = s(k);
end