“Converting” Numpy arrays to Matlab and vice versa

后端 未结 6 1407
孤独总比滥情好
孤独总比滥情好 2020-11-30 00:27

I am looking for a way to pass NumPy arrays to Matlab.

I\'ve managed to do this by storing the array into an image using scipy.misc.imsave and then loa

6条回答
  •  爱一瞬间的悲伤
    2020-11-30 01:02

    Some time ago I faced the same problem and wrote the following scripts to allow easy copy and pasting of arrays back and forth from interactive sessions. Obviously only practical for small arrays, but I found it more convenient than saving/loading through a file every time:

    Matlab -> Python

    Python -> Matlab

提交回复
热议问题