필터 지우기
필터 지우기

How can i add the C source code of a matlab function to a mexfunction of a matlab toolbox written withc/c++ code ?

조회 수: 2 (최근 30일)
How can i add the C source code of a matlab function to a mex file of a matlab toolbox written withc/c++ code ?
the source code of the toolbox is not available.

채택된 답변

James Tursa
James Tursa 2017년 5월 25일
If I understand your question correctly, you want to modify existing compiled code by adding your own code, but you don't have the source code for the existing compiled code. You cannot do that. You would need the original source files for the compiled code in order to add in your source code so that you could recompile the whole thing again. And, if this is an official MATLAB toolbox we are talking about, this would probably not be a good idea anyway.
What problem are you trying to solve? Why do you think you need to modify existing compiled code in order to solve your problem?
  댓글 수: 1
wided hechkel
wided hechkel 2017년 5월 26일
Thank very much for your consideration. The Matlab toolbox that i mean is the software Field II. http://field-ii.dk/ This software cannot simulate synthetic transmit aperture algorithms. My aim is to built new function and add it to the main functions of Field II to attain my goal in the simulation. Really i want to know if i can only add matlab function written with Matlab language or i should write c++ code script and add it to the toolbox to simulate my algorithm.
Thank you

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

추가 답변 (0개)

카테고리

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