MATLAB: How can i introduce a function in matlab

introduce function in matlab

I want introduce the function "mtimesx" in matlab but i donĀ“t know how
I tried it since import file but i have errors
My version is r2008a and i have windows 7
thanks

Best Answer

You will need to install a supported compiler; see http://www.mathworks.com/support/compilers/release2008a/
Then at the MATLAB command line, give the command
mex -setup
to select the compiler.
Then, download mtimesx and unzip it into a new directory under your Documents and Settings folder.
In MATLAB, "cd" to that folder and then at the MATLAB command line give the command
mtimesx_build
that should build the program.
After that you might possibly need to use pathtool to add the new directory to your MATLAB path.
Related Question