MATLAB Answers

Dot indexing is not supported for variables of this type

23 ビュー (過去 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 件のコメント

表示 2 件の古いコメント
Mariam Roy
Mariam Roy 2019 年 7 月 25 日
Dot indexing is not supported for variables of this type.
Error in filter (line 11)
timevector = rawIK.data(:,1);
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

Sign in to comment.

回答 (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

  0 件のコメント

Sign in to comment.


Translated by