Borrar filtros
Borrar filtros

How to execute ECG signal notch filter c code converted from matlab coder in any C/C++ code compilers?

4 visualizaciones (últimos 30 días)
Hi respectful coders,
I had converter ECG notch filter code from matlab to C code using matlab coder (Matlab R2022b pre-release version). When I am trying to execute in VS code it shows the following error:
cannot open source file "tmwtypes.h" (dependency of "mynotch.h")
I was trying lot to solve this error but still I could n't resolve.
Please help me with it.
Thanks.

Respuestas (1)

Yoga
Yoga el 10 de Sept. de 2023
I understand that you are facing the error 'cannot open source file' while converting code from MATLAB to C.
The "cannot open source file 'tmwtypes.h'" issue you're getting means that the C code produced by MATLAB Coder depends on a header file called "tmwtypes.h," which is unique to MATLAB and contains particular data type definitions. You must make sure that your C code can access and include this header file in order to fix this problem.
You can refer to one of the MATLAB answer posts which explains how to perform the same - https://www.mathworks.com/matlabcentral/answers/286826-matlab-coder-compiler-can-t-find-tmwtypes-h.
I hope this helps resolve your issue.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by