Hi Wasif! See, I don't think anybody is going to give you the code generously, just like that! I suggest, you post the exact point where you are stuck & maybe the community would be able to help you! Meanwhile, have you tried the file exchange community of MathWorks? Then there are popular courses on Matlab Programming from portals like Coursera,edx. NPTEL, MIT Open Course Ware etc. Have you tried them? Wish you luck Wasif :)