You posted "the code" (badly, but you can go back and correct it) in your original post.
What are you asking for?
Should this be in the "Interfacing" section, or in "Gigs and collaborations"?
It sounds like you should be posting an offer to pay someone to write code for you, in Gigs and collaboration. Here, we're willing to help you understand the issues well enough to write the code yourself. But, it sounds like you have no clue about matlab and no interest in getting such a clue.