Integrating C code into MATLAB
조회 수: 24 (최근 30일)
이전 댓글 표시
Hi all,
I am struggling to merge a c code into matlab I have tried many methods but nothing seems to works. I have attached a copy of the c code along with its header files (it is a Battery management system) which run of an can bus. There are three outputs which are readings of the voltage across cell, temperature and the Module.
Thank you in advance :)
댓글 수: 5
Jan
2022년 3월 21일
Yes, it is possible. The C code contains serveral function. It is not clear how they have to be called and what you want to export as output.
답변 (1개)
Kumar Pallav
2022년 3월 23일
Hi,
You can use 'coder.ceval' to call C/C++ function from MATLAB code. Please refer examples mentioned in this documenation for details.
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!