function doit_bad () pi2 = pi; get2 = @(var) eval([var,'2']); get2('pi') end