Mex file entry point is missing. Please check the (case-sensitive)
spelling of mexFunction (for C MEX-files), or the (case-insensitive)
spelling of MEXFUNCTION (for FORTRAN MEX-files).
??? Invalid MEX-file '/Nonlinear_Diffusion/thomas_mex.mexa64': .
Error in ==> Nonlinear_Diffusion>solve_tridiagonal at 168
U = thomas_mex(b,c,a,U)';
Error in ==> Nonlinear_Diffusion>solve_semi_implicit_scheme at 202
U_bt = solve_tridiagonal(U((ixstart+1):(ixstart+N)),gs,ix_v,ix_v+N,ix_v+4*N,ixy,ixx,N,ax,tau,2); % top and bottom
Error in ==> Nonlinear_Diffusion at 118
[U] = solve_semi_implicit_scheme(U,g_arg_sq,ix_v,N,d,w,ax,tau,p,eps2,ixx,ixy,ix_ch_lr);
Error in ==> test_nonlinear_diffusion at 5
[Zebra1] = Nonlinear_Diffusion(double(zebra),1,1e-2,1,20,0, 0);
I met the same issue when mexing other cpp files. This is the incompatibility of Matlab with Mac OS X. You need to modify MATLB_ROOT/bin/mexopts.sh, change all 10.7 (4 places) under miaci64 section, and modify the MW_SDKROOT to, e.g., /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
Then, mex -setup. Now you should be able to mex all the cpp files.
Thanks for this useful toolbox.
I am not able to compile the c files successfully. I have Matlab2013b version running on mac osx 10.9 and xcode 5. (Maybe that's the problem.)
Running compile_c_files.m i get the following errors:
xcodebuild: error: SDK "macosx10.7" cannot be located.
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "bspline_error_2d_double.c"' failed.
Unable to complete successfully.
Error in compile_c_files (line 8)
Do you have an idea how to solve this?
Many thanks in Advance!
Mostly it works. But I found some minor problems (Might be my problems):
1. The 2D version, the Direction is not correct. I used cos and sin function and then the "quiver" function to draw them, it seems the Direction matrix doesn't reflect the main direction of the vessel structure.
2. For 3D version, it would be great if you can provide me not only the main direction but also the 2 sub-directions related with the 2 "larger" eigenvalues.
Thanks for your work. Please tell me what's wrong with the 2D direction.