Menu

#2 support all data types

1.0
closed
Tobias
None
2014-10-15
2013-11-22
Tobias
No

On Matlab Central there have been several complaints about some data types not or not fully supported.

Discussion

  • Tobias

    Tobias - 2013-11-22

    26 Apr 2013, Jen wrote on Matlab Central:

    I have no problem reading in Uint8 and Double. But I couldn't read in "int8" and "uint16" type MAT file, debug stopped at Ln386 in "MatFileReader.cs", and error message says

    "Additional information: Unable to cast object of type 'csmatio.types.MLInt8' to type 'csmatio.types.MLNumericArray`1[System.Byte]'."

    What might be wrong? Thank you

     
  • Tobias

    Tobias - 2013-11-22

    29 Apr 2013, Jen wrote on Matlab Central:

    It still doesn't work Tobias. I didn't make it very accurate in the last post: For uint16, error can be catched, saying "invalid binary MAT-file!"; For int8, the debugger stopped at ln386 in MatFileReader.cs and error message says

    "Additional information: Unable to cast object of type 'csmatio.types.MLInt8' to type 'csmatio.types.MLNumericArray`1[System.Byte]'."

    Has anyone tried on uint16 or int8 before? Thank you for your reply.

     
  • Tobias

    Tobias - 2013-11-22

    29 Apr 2013, Jen wrote on Matlab Central:

    one more thing, CSMatIO has no problem reading uint16/int8 files that is created by CSMatIO itself. It only has problem when I tried Matlab "save()" function created mat files.
    Thank you

     
  • Tobias

    Tobias - 2014-10-15

    I changed a lot of lines in the type-dependent code, see [r11]. I fixed some bugs and shortcomings regarding different numeric data types (Int8/16/32/64, UInt8/16/32/64, float, double, also for complex numbers). I hope its working better now so I close the ticket. If someone complains we can reopen it.

     

    Related

    Commit: [r11]

  • Tobias

    Tobias - 2014-10-15
    • status: open --> closed
    • assigned_to: Tobias
     

Log in to post a comment.

MongoDB Logo MongoDB