I'm trying to update my c3d conversion methods for OpenSim 4.0 using the provided osimC3D methods. I can import the osimC3D object and assign the markers and forces to structures for editing, but I need help with:
1) How to save edited marker/force structures back to the osimC3D object?
2) How to access analog channels/data in osimC3D?
I've tried the following method to assign the marker structure back to the object, but I get an error. Does anyone know how to go about this?
Code: Select all
c3d = osimC3D([directory{i} c3dfileNames.(subID{i}){j}], 1);
[markerStruct, forceStruct] = c3d.getAsStructs();
% compute virtual markers
markerStruct = computeVirtualMarkers(markerStruct,1); % my custom function
% save edited markers back to osimC3D object?
>> c3d.markers = osimTableFromStruct(markerStruct);
You cannot set the 'markers' property of osimC3D.
Maria