matlab engine是什么,use matlab engine

Include Path Project->Properties->C/C++ Build->Settings. Includes, /opt/MATLAB/extern/include Libraries We need to specify that both the "eng" and "mx" Matlab libraries should be linked with our executable. We'll also specify inside eclipse the library search path. In our installation, the libraries can be found at /opt/matlab/bin/glnx86. For 64-bit installations, replace glnx86 with glnxa64. If neither of these directories exist on your machine, then perform a find from the installation root: "find . -name libmx.so". An alternative to using rpath would be to update the library search path in /etc/ld.so.conf. On an Ubuntu installation, we can create a matlab.conf file inside /etc/ld.so.conf.d. Inside this text file, we list the library path: /opt/matlab/bin/glnx86. After updating the file, run sudo ldconfig. You may get warnings that the .csf files in the directory are not ELF files, and this is probably not desirable for your installation Environment You should now be able to compile and link your application with the Matlab engine. However, before you can connect to it successfully, you need to take care of a couple environment issues: Make sure the matlab executable is in your path. If it's not, then a simple solution is to put a symbolic link to the executable in /usr/bin: "ln -s /opt/matlab/bin/matlab /usr/bin/matlab". The Matlab engine on Linux also requires a "c shell" to be installed. Confirm that it is installed and on the system path by running "which csh".

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值