Hi, thanks for response. Here is link with mat file https://files.fm/u/pxpthu5r I use matio 1.5.12 and file was saved with Matlab R2016. I have problem with matdump. My compilers don't recognize it's Makefile. I work on Windows so I will try to make it with some Cygwin but don't know how to do it right now.
I try to read symbolic data stored in a mat file in C++. Code saving data in Matlab is: syms a; save resultA.mat a -v7; Here is my c++ code which I run: using namespace std; mat_t matfp; matvar_t matvar; matvar_t *matvar1; matfp = Mat_Open(fileName, MAT_ACC_RDONLY); if ( NULL == matfp ) { fprintf(stderr,"Error opening MAT file"); } while((matvar = Mat_VarReadNext(matfp)) != NULL){ cout << "New var " << endl; Mat_VarPrint(matvar, 1); if(matvar->rank > 0){ const char *var = static_cast<const char*>(matvar->data);...
I try to read symbolic data stored in a mat file in C++. Code saving data in Matlab is: syms a; save resultA.mat a -v7; Here is my c++ code which I run: using namespace std; mat_t matfp; matvar_t matvar; matvar_t *matvar1; matfp = Mat_Open(fileName, MAT_ACC_RDONLY); if ( NULL == matfp ) { fprintf(stderr,"Error opening MAT file"); } while((matvar = Mat_VarReadNext(matfp)) != NULL){ cout << "New var " << endl; Mat_VarPrint(matvar, 1); if(matvar->rank > 0){ const char *var = static_cast<const char*>(matvar->data);...