Skip to content

ezc3dWrite not saving parameters.ANALOG.SCALE.DATA values #376

@pmtanx

Description

@pmtanx

Hello,
I'm very thankful for ezc3d! I have had success using it for a variety of tasks. However, I'm finding that there is one parameter value that ezc3dWrite doesn't seem to be saving correctly. I'm able to open my c3d file, to change various fields, and to save them successfully, with the exception of the Analog Scale values. Simply opening the file and resaving it causes all the previous values to be overwritten with ones. The same thing happens no matter what I set the scale values to.

c3d = ezc3dRead('Dancer800R1S_force_fixed.c3d');
c3d.parameters.ANALOG.SCALE.DATA
ezc3dWrite('Dancer800R1S_force_rewritten.c3d',c3d);
c3d = ezc3dRead('Dancer800R1S_force_rewritten.c3d');
c3d.parameters.ANALOG.SCALE.DATA
ans =
    -1
    -1
    -1
    -1
    -1
    -1
     1
ans =
     1
     1
     1
     1
     1
     1
     1

sample_files.zip

I've attached my c3d file and some sample Matlab code and would be grateful for any suggestions!

Thanks,
Philip Tan
Messiah University
Grantham, Pennsylvania, US

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions