Thanks for replying,Actually i am trying yo convert matlab code into C#,if u can help me then i will send u the code in matlab and also that work that i have done C#, but plz help me and give me ur mailing id so that i could send u code in attachments