export .m code to c++ dll

2018-02-28  本文已影响0人  lucientlau

install mcc in matlab

mbuild -setup

before do this u should install VS software, e.g. VS2010. or the setup process can find the compiler.

use mcc build .m

mcc -v -W cpplib:MyNewAdd -T link:lib MyNewAdd.m

Note: I do this in MATLAB2010

Reference

上一篇下一篇

猜你喜欢

热点阅读