Dear All,
Thank You.One of my functions was named IMSHOW which is a matlab function in image processing toolbox. Since i didn't have Image processing toolbox, it was not recognizing the other functions in the folder.
Remedy : I deleted the function and everything works perfectly now. Thank you.