Some background for people reading this in the future (in case it\'s not locked). I tend to do my programming in a high level language to understand the problem first. After
As it has been said above it depends upon ur application. I tried to convert the decoder (of a communication system) it gives the accurate results but for large number of bits it is slower than its own MATLAB version. So my conclusion was to convert MATLAB code to C by hand.