Where can I find the C version of MATLAB functions like filter, interp, filtfilt ?

I am working on ECG signal QRS detection in MSP430F5438A. I am implementing the Pan- Tomkins algorithm. Here I found a MATLAB version of it as well: https://www.mathworks.com/matlabcentral/fileexchange/45840-complete-pan-tompkins-implementation-ecg-qrs-detector. I need to implement the algorithm in my embedded system. So, C version of the functions used here will be helpful for me to proceed. It would be great if anyone can help me with that.
Thanks.

3 comentarios

Which interp method do you need, and how many dimensions?
Linear interpolation of 1 D function.
Note: you can be a bit more efficient if you use a binary search to find the correct segment.

Iniciar sesión para comentar.

Respuestas (2)

Use coder products to generate C code

2 comentarios

The mentioned routines are not (fully?) supported by MATLAB Coder.
Yes, Walter is correct, the built-in MATLAB function is not changeable by the coder.

Iniciar sesión para comentar.

You can search OpenCV for functions that do similar things. It's open source image processing code.

Etiquetas

Preguntada:

el 4 de Abr. de 2018

Comentada:

el 7 de Abr. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by