Question: problem in loops...

hi friends am trying code for 1d heat equation but my code is not giving me result which i needed...although its running but still am in doubt its not picking boundary conditions and initial condition in last loop of discritzed equation due to which my result are totally wrong.. am attaching worksheet please let me know where am wrong...will_see.mw

Please Wait...