Filter löschen
Filter löschen

Integrating C code into MATLAB

11 Ansichten (letzte 30 Tage)
Jesvin Jose
Jesvin Jose am 21 Mär. 2022
Beantwortet: Kumar Pallav am 23 Mär. 2022
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 Kommentare
Jesvin Jose
Jesvin Jose am 21 Mär. 2022
I want the C code array processed and stored in MATLAB. Would that be possible?
Jan
Jan am 21 Mär. 2022
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kumar Pallav
Kumar Pallav am 23 Mär. 2022
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!

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by