I have attached my Matlab code and the reference paper through which i got the idea of making the code (Page # 6).My temperature values are deviating upto values of 10. Kindly tell me what is the problem in my code. I am working on it for a week and not able to remove this bug. Kindly help me out. I would be very thankful to you.