update_boundaries

PURPOSE ^

--------------------------------------------------------------------------

SYNOPSIS ^

function b_U = update_boundaries(b_U, numOfPeriods, updateValue)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 08-Jul-2009 18:57:55 by m2html © 2003