Jul-02-2019, 03:45 PM
What is the simplest way to send complex data from Matlab to Python? I have a pre-written script in Python that uses dictionaries as the base data form and it would be difficult to change this. I know py.dict exists in Matlab but up to this point I've found no way to save the dictionary in Matlab and re-open it in Python. If all scripts were just written in Python, I could use a Pickle file to do this but, as far as I can tell, there is no equivalent in Matlab, and I'm dependent on a Matlab only toolbox to get the data. Is there a way to send more complex dataforms than an array from Matlab to Python?