try
T=[];
T(1);
catch err
warning(err.identifier,err.message);
end