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

1 回表示 (過去 30 日間)
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.

回答 (1 件)

Yoga
Yoga 2023 年 9 月 10 日
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.

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by