%evct2.m: Procedure to return expected value function at a particular %(w,c) point in the state space, only for t=T in the finite horizon %problem. CRRA utility. %Hugo Benitez, Yale University, 1999 function[x]=evct2(c); global bq wgrid i ufunc1h=@ufunc1; x=feval(ufunc1h,c)+bq*feval(ufunc1h,(wgrid(i)-c));