bastibe / transplant

Transplant is an easy way of calling Matlab from Python
https://transplant.readthedocs.io
Other
110 stars 26 forks source link

How to use transplant.MatlabStruct(dict) #65

Closed tombadmanship closed 6 years ago

tombadmanship commented 6 years ago

Hello, will you please post an example of how to populate this object?

bastibe commented 6 years ago

build your dict, then wrap it in transplant.MatlabStruct before passing it to Matlab.

x = dict(...) # build your dict as you normally would
matlab.disp(transplant.MatlabStruct(x)) # wrap it, and pass to Matlab
tombadmanship commented 6 years ago

I see - thank you for your response.