I read a MAT file using matio, and casting the data to mat_sparse_t seems to work wrong. The sparse array has 632 non-empty elements, but the value of nir field is 641. Is that a bug or I do sth wrong? I attach the test
Confirmed, but 641 is the number obtained from the file. If I load your MAT file and save it again in MATLAB R2019a, I get the expected numbers when reading in matio: T156.zip. To me it looks like an issue in the MATLAB version you saved the variables A and U.
Hi,
I read a MAT file using matio, and casting the data to
mat_sparse_t
seems to work wrong. The sparse array has 632 non-empty elements, but the value ofnir
field is 641. Is that a bug or I do sth wrong? I attach the testmathworks100.zip