2013-03-06 108 views
0

我在Matlab又得到了另一個問題,ASM代碼,我需要從MATLAB調用函數interp2fast_double.c,但是當我運行它,它給了我的錯誤是這樣的:未定義功能interp2fast_double

Undefined function 'interp2fast_double' for input arguments of type 'double'. 

Error in interpfast (line 59) 
    J = interp2fast_double(double(I),double(xi),double(yi),double(mode)); 

Error in ASM_getProfileAndDerivatives3D (line 33) 
gt= interpfast(I,xi,yi,zi,'cubic')'; 

我搜索的問題在論壇上,他們說我必須設置路徑,之後我做了錯誤仍然存​​在......

有人可以幫助我這個請...

回答

0

你有編譯的C文件轉換成MEX文件?

設置你MEX編譯器

>> mex -setup 

選擇相關的編譯器。

然後

>> mex -largeArrayDims -O interp2fast_double.c 
+0

謝謝您的回覆... – user1146895 2013-03-07 10:52:43

+0

我已經編譯它,現在這個問題解決了,謝謝:) – user1146895 2013-03-07 10:53:09

+0

@ user1146895我很高興。你有沒有考慮過[接受](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work)這個答案? – Shai 2013-03-07 11:29:38