Access propreties of ndarray in Matlab

27 views Asked by At

I have imported an python ndarray as a cell in Matlab (data_cell) and now I would like to access the properties of this ndarray, more specifically the shape, to convert any cell to the right type with the right size in MatLab.

What I would like to do is:

data_convert_1 = reshape(double(py.array.array('d', ...
                      py.numpy.nditer(data_cell(2), pyargs('order', 'F')))), ...
                      shape);

But for this I need the original data shape, that is in the properties information, like in the image bellow:

enter image description here

How can I access this? or save for ex. [row,col] = data_cell(1,2).shape ?? This doesn't work

0

There are 0 answers