MATLAB Examples

Read Element of Nested list Type

This example shows how to access an element of a Python® list variable containing list elements.

matrix = py.list({{1, 2, 3, 4},{'hello','world'},{9, 10}});

Display element 'world' which is at index (2,2).

disp(char(matrix{2}{2}))
world