You can't solve a math problem that you don't know how to write. That's like me giving an Algebra problem to a first grader and telling him to solve for X. He doesn't know what I'm talking about - just like you don't know what you are talking about when you try to translate Matlab to C. I don't know what you are trying to do either, but "same old answers" tells me your math is wrong.
If you can't put into clear words what you are trying to achieve, then the chances are you can't translate that from one language to the next either.
Quzah.