필터 지우기
필터 지우기

issue related to mex file in matlab

조회 수: 1 (최근 30일)
Sujeet Mishra
Sujeet Mishra 2012년 1월 6일
Hi , I have a mex file corresponding to a .cpp file generated from MATLAb version R2011b .But my Matlab setup is R2011a .I am getting an error like "Invalid MEX-file" while running the file in my MATLAB setup ...Is it because of version change ...Is the mex file not backward compatible ???

답변 (1개)

James Tursa
James Tursa 2012년 1월 6일
In general, mex routines are not backward or forward compatible. It all depends on what versions you are running, which OS you are using, and what the mex routine is doing. And I am not aware of any reference you can consult to determine what to avoid & how to make the mex routine portable. In some cases it simply will not be possible. The generic advice is to recompile.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by