MATLAB to Fixed-Point C Code Generation and its Application to Real-Time Heartbeat Detection