Thanks for the solution.
Thanks, It did work.
Can you please also help me in finding the solution for the error in this mathematica file. I have attached the mathematica file Thanks