I am running (64bit) ubuntu 10.04 (vm on fusion 4.3 on a newish MacBook Pro), and I am having a problem compiling:
Upon typing "compile_mex_codes", I get:
mex: ac_tridiagonal_Thomas_dll.cpp not a normal file or does not exist.
Error using mex (line 206)
Unable to complete successfully.
Error in compile_mex_codes (line 1)
mex ac_tridiagonal_Thomas_dll.cpp
Note that I ran "mex -setup", though I have compiled mex files successfully before). It looks like (assuming is see my vm as a "glnxa64"). I have g++ selected, as you indicated in earlier post(s). I am not sure about the flags . . .
I am using "gcc/g++/gfortran" v. 4.4.3, while mex is apparently supported with 4.3.4, but I had no problems in previous mex compilations.(I am fairly new to Matlab, let alone mex files.)
I changed line 56 from:
X=X(1:N)/max(X);
to:
X=X(1:N)*N;
in order to return original scaling
This file saved me some time writing my own, thank you very much!
Comment only