Are there any examples of how to create a wrapper C-MEX S-function for a C++ function using the S-function builder?
조회 수: 4 (최근 30일)
이전 댓글 표시
Are there any examples of how to create a wrapper C-MEX S-function for a C++ function?
채택된 답변
MathWorks Support Team
2009년 6월 27일
Here is an example that shows how to use a C-MEX S-function as a wrapper for C++ functions.
Download the attached sfunwrapper.c and mysfun.cpp files.
Type the following to compile the S-function:
mex sfun.c sfun_wrapper.c myfun.cpp
This example was created with the S-function Builder, which is available as of MATLAB 6.1 (R12.1), and Simulink 4.1 (R12.1). Feel free to modify the files so it will fit your own needs.
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!