Friday, August 8, 2014

Call C++ Function in Matlab

mex -setup %choose compiler
mex mycode.c %call the function


If you need to add other cpp files and lib files while compiling in Matlab:

mex cpp-file-for-matlab.cpp ../addthis.cpp ../addthat.cpp -laddlibrary

No comments:

Post a Comment

Setting Jupyter and Tensorflow on Google Cloud Platform

https://towardsdatascience.com/running-jupyter-notebook-in-google-cloud-platform-in-15-min-61e16da34d52