Python in Matlab: accessing list of lists
2 ビュー (過去 30 日間)
I have some code that generates a Python list of Python lists. Unfortunately I don't seem to be able to access the contents. I get the following error:
Cell contents reference from a non-cell array object.
Is this just a current limitation of Python support? I checked this page , and I don't see it listed.
Robert Snoeberger 2015 年 11 月 13 日
編集済み: Robert Snoeberger 2015 年 11 月 13 日
"Python Objects: Indexing Support" is listed in the R2015a release notes . Which version of MATLAB are you using?
In the absence of indexing, you can use operator.getitem .
>> py.operator.getitem(eventList, int32(0))