Dot indexing is not supported for variables of this type

5 visualizaciones (últimos 30 días)
Mariam Roy
Mariam Roy el 22 de Jul. de 2019
Respondida: amin ya el 25 de Jul. de 2019
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 comentarios
Matt J
Matt J el 25 de Jul. de 2019
Dot indexing is not supported for variables of this type.
What type of variable is it?
Mariam Roy
Mariam Roy el 25 de Jul. de 2019
rawIK is a cell
Capture.PNG

Iniciar sesión para comentar.

Respuestas (1)

amin ya
amin ya el 25 de Jul. de 2019
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

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by