matlab try

try程序1;catch程序2;end先执行程序1,程序1不报错,不会执行程序2;若报错,执行程序2;
try程序1catch程序2;
end

先执行程序1,程序1不报错,不会执行程序2;若报错,执行程序2;