필터 지우기
필터 지우기

How to expand struct value into logical 2-d value?(python code provided)

조회 수: 3 (최근 30일)
chang zhao
chang zhao 2019년 6월 24일
편집: chang zhao 2019년 6월 24일
mat1 has 'fixLocs' with value and size as follows
mat2 has 'gaze' with value and size as follows
my question is mat2's 'gaze' can expand into logical 2-d value as mat1's 'fixLocs':
For mat1 in python scipy loadmat is enough while for mat2 in python it looks like :
for i, path in enumerate(paths):
gazes = io.loadmat(path)["gaze"]
coords = []
for gaze in gazes:
print(gaze[0][2])
coords.extend(gaze[0][2])
And the result is the same
I have no idea since gaze[0][2] 's output 2*10(2-d) size np array(nested list)? aka cell structure in matlab
I want to know how to realize it in matlab

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by