


-------------------------------------------------------------------------- Purpose: update the boundary condition vector Date: Aug 06, 2008, ver01 By: Hooman Askari -------------------------------------------------------------------------- -------------------------------------------------------------------------- Pseudo Code improve performance --------------------------------------------------------------------------


0001 %-------------------------------------------------------------------------- 0002 % Purpose: update the boundary condition vector 0003 % Date: Aug 06, 2008, ver01 0004 % By: Hooman Askari 0005 %-------------------------------------------------------------------------- 0006 %-------------------------------------------------------------------------- 0007 % Pseudo Code 0008 % improve performance 0009 %-------------------------------------------------------------------------- 0010 0011 function b_U = update_boundaries(b_U, numOfPeriods, updateValue) 0012 0013 for iPeriods = 1:numOfPeriods 0014 temp(iPeriods, 1) = updateValue; 0015 end 0016 0017 b_U = [b_U; temp]; 0018 end