Is it possible to call a function written in C in a matlab program?
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to call a function written in C in a matlab program? I have to process video files,and I want to calculate the motion vectors of a video file,but apparently its difficult to do it in matlab. Hence my professor suggested I do it in C. But i do not want to make the whole code in C since I'm comfortable with matlab. Any help would be appreciated.
댓글 수: 0
채택된 답변
Shashank Prasanna
2013년 2월 16일
MEX files. You can modify your c code to add gateway functions and call it from MATLAB.
Search the doc for mex or go through:
댓글 수: 0
추가 답변 (1개)
Aurimas
2013년 2월 16일
I don't know what function you need, but you can also easily use .NET Framework or Java calls in your Matlab code. http://www.mathworks.se/help/matlab/external-interfaces.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!