I think there is a bug in ValueFnIter_GI_nod_raw, see here: VFIToolkit-matlab/ValueFnIter/InfHorz/GridInterpLayer/ValueFnIter_GI_nod_raw.m at master · vfitoolkit/VFIToolkit-matlab · GitHub
In line 81, the function uses the variable ReturnMatrixfine which is not an input to the function and is not calculated in the function.