Matlab To Fixed-Point C Code Generation And Its Application To Real-Time Heartbeat Detection