Hi,
I am new to MEX functions, and I am learning about them since ... today!
So, I have a matlab function, and I generated the MEX by using the Matlab coder. So far, so good. I get a report that tells me that I can now use the C code in my application (actually I selected C++. Is this a default message, or should I double check this?), see screenshot.
I tried to click "Lear more", but I get "Topic learn_more_finish_c not found for product coder and relative path helptargets.map.". I hope I can "Learn more" here instead.
My question is: in my code, I call the function
integral_Ihp1_I12_4coder
as I did before and, if I open it, I am redirected to the original .m file. Should I see a C file instead?! How do I know that I am using the generated MEX file and not my original Matlab function?

 채택된 답변

Sriram Tadavarty
Sriram Tadavarty 2020년 7월 29일

0 개 추천

Hi Maria,
The generated mex file will have an extensions mex for the filename. For example with windows platform, you get the mex file to be filename_mex.mexw64.
Then run directly the filename_mex(inputs...) and it will run the generated mex.
Inorder to see the C files, they reside in in the codegen folder. In codegen folder -> mex folder -> the folder with filename the mex is generated.
For more information, look at the page here.
Hope this helps.
Regards,
Sriram

댓글 수: 1

Maria
Maria 2020년 7월 29일
Aha, I see it. Thanks! I will look into the page you linked.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2020년 7월 29일

댓글:

2020년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by