tbeu / matio

MATLAB MAT File I/O Library
https://matio.sourceforge.io
BSD 2-Clause "Simplified" License
334 stars 97 forks source link

object defined with keyword 'class' can not be loaded by matio #100

Open Nelson-numerical-software opened 5 years ago

Nelson-numerical-software commented 5 years ago
 A = complexObj1(3, 4)
save('d:/class_cplx.mat', 'A','-v7.3')

with complexObj1 defined as:

function r = complexObj1(rp,ip)
c.r = rp;
c.i = ip;
r = class(c, 'complexObj1');
end

data_type returns MAT_T_UNKNOWN and class_type returns MAT_C_EMPTY

Do you think to support also this "type" and when ?

class available before 2006

Thanks

tbeu commented 5 years ago

Again, it all is about the undocumented opaque type for MCOS.