Skip to content

Help on accessing data elements. #1

@trisino

Description

@trisino

Hi,

I understand this is code you posted several years ago, but I would appreciate your help: I am trying to read in a very simple MAT-file (it contains just one array of doubles), but I can't figure out how to access the actual data.

In the example you provided along with the code, only some generic "metadata" is printed out of the variables parsed from the MAT-file.

I tried static_recast to FlatDataElem and MatrixDataElem but I don't seem to be able to have proper access to the data() member function.

So, my question is: once I have a pointer to a DataElement (after decompression), what should I do to access the elements of the array?

Many thanks for your help!
Trisino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions