function val=chkcell(c,el)
% chkcell  Return {c{el}} if c is cell else returns c.
% Usage:: val=chkcell(c,el)
%
% Return {c{el}} if c is cell else returns c.

% revision history:
% 08/02/02 Mark D. Shattuck <mds>   chkcell.m

if(iscell(c))
    val={c{el(el<=length(c))}};
else
    val=c;
end
