Have problem when learn mex

I'm learning Mex funtion, but when i excute an example mex yprime.c have error: C:\PROGRA~1\MATLAB\R2011B\BIN\MEX.PL: Error: 'yprime.c' not found.
Error using mex (line 206) Unable to complete successfully. Please help me thanks

답변 (1개)

James Tursa
James Tursa 2013년 4월 13일

0 개 추천

The file yprime.c needs to be in your current directory if you don't use the full pathname. So copy the file yprime.c from the MATLAB directory it is located in to your current working directory. It can be found in:
[matlabroot '\extern\examples\mex\yprime.c']
Once you have done this, you can type the command:
mex yprime.c

댓글 수: 1

Pham Ngoc Thanh
Pham Ngoc Thanh 2013년 4월 18일
thanks you very much, I can understand.

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

질문:

2013년 4월 13일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by