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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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.
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
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]