Integrating C code into MATLAB
26 ビュー (過去 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!