1-coder -new myFunc.prj 2-Add myFunc.m to the project. 3-In define type section, define "x" as double. 4-output type: static library. 5-Make a simple c/c++ project and use the function you wrote in Matlab