How to convert a c++ file to a matlab coding?

조회 수: 3 (최근 30일)
faseela  t
faseela t 2015년 11월 25일
답변: Aiswarya 2022년 7월 6일
Sir,
As a part of my research work I need to convert a c++ code into MATLAB. Please help me .
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 11월 25일
That might be a lot of work, or it might only be a little work . We would need to see the code to get a good idea.
There is no tool that can automatically convert C++ code into MATLAB.
Are you certain that you need to rewrite the C++ code as MATLAB? It is possible to call C++ code from MATLAB.

댓글을 달려면 로그인하십시오.

답변 (1개)

Aiswarya
Aiswarya 2022년 7월 6일
If you want to actually convert C++ code to MATLAB code, then maybe it requires manual conversion.
However, if you just want to call the C++ code from MATLAB, you can create and use a mex file via Matlab Coder . You can use ceval to call the C++ code from matlab. You can refer coder.cinclude and coder.ceval for calling the C++ code.

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by