Why am I not able to mex the example FORTRAN yprimef.F MEX-file on 64-bit Linux in MATLAB 7.7 (R2008b)?

조회 수: 1 (최근 30일)
The FORTRAN MEX example in the documentation appears to not work. I am trying to run this command on the yprimef.F and yrprimefg.F files that are present in:
$matlabroot\extern\examples\mex
where matlabroot is the MATLAB installation directory.
I run the following command to create a MEX-file on a 64-bit Linux machine using the supported compiler:
mex yprimef.F yprimefg.F
Either I am not be able to compile successfully, or even when able to compile, I cannot run the generated mex file. I get the following error:
??? Error using ==> yprimef
YPRIME requires two input arguments

채택된 답변

MathWorks Support Team
MathWorks Support Team 2011년 5월 2일
Please change the datatype of PLHS(*) and PRHS(*) to MWSIZE such that automatically the correct datatype for your compiler is used.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2008b

Community Treasure Hunt

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

Start Hunting!

Translated by