array at the end:
>>> a
array([[[[2, 2]],
[[3, 3]]]])
>>> a.shape
(1, 2, 1, 2)
But to mimic a cell...例如:
npose = 5
nsmile = 2
poseSmile_cell = np.empty((npose,nsmile),dtype=object)
for i in range(5):...for k in range(2):
poseSmile_cell[i,k] = np.zeros((4,4))
print poseSmile_cell.shape
参考文献...:
https://stackoverflow.com/questions/19797822/creating-matlab-cell-arrays-in-python