Jupyter-notebook matlab插件

%lsmagic : list which magic command is available, if there is not the kernel what you want, you can install form the kernels page.

install matlab kernel

  • Matlab engine for python
    you need first install Matlab engine for python, this installation file in the directory of /Applications/MATLAB_R2017b.app/extern/engines/python. cd to this dir. and install it using command of python setup.py install

  • pymatbridge
    pip install pymatbridge

use matlab kernel in python cell

%load_ext pymatbridge

import pymatbridge as pymat
ip = get_ipython()
pymat.load_ipython_extension(ip)

猜你喜欢

转载自blog.csdn.net/weixin_34347651/article/details/90873827