Dot indexing is not supported for variables of this type

조회 수: 5 (최근 30일)
Mariam Roy
Mariam Roy 2019년 7월 22일
답변: amin ya 2019년 7월 25일
I'm trying to load a file onto matlab from Opensim, but it shows this error on this line - timevector = rawIK.data(:,1);
%% Load Data
filename = 'C:\...\MoBL-ARMS OpenSim tutorial_33\ModelFiles\InputFiles_module5_scaleIK\IKreach.mot';
delimiterIn = '\t';headerlinesIn = 7;
rawIK = importdata(filename,delimiterIn,headerlinesIn);
timevector = rawIK.data(:,1);
  댓글 수: 5
Matt J
Matt J 2019년 7월 25일
Dot indexing is not supported for variables of this type.
What type of variable is it?
Mariam Roy
Mariam Roy 2019년 7월 25일
rawIK is a cell
Capture.PNG

댓글을 달려면 로그인하십시오.

답변 (1개)

amin ya
amin ya 2019년 7월 25일
If your cell has strctures inside, you should first mention the row and column of the cell then access the structure inside a cell.
rawIK{4,1}.data

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by