Hello everyone.
I am programming in c++ and I am using the TinyMAT library to export what I have written in c++ to matlab.
I need to write a .mat file with a structure in it.
For example, I have:
TinyMATWriterFile* mat=TinyMATWriter_open('data_set.mat') % I open a new .mat file
if (mat){
TinyMATWriter_startStruct(mat,"EEG") % I oper a new structure in .mat file
I don't have experience with TinyMAT, but it looks like the "mat structs" are accessible through a std::map that you fill in yourself. std::map -> http://www.cplusplus.com/reference/map/map/
There is a folder in their github called examples, compile these example codes, run and compare the output.
Try looking at some existing mat files and figure out which write functions might be used to create the structures in those files. Check out some hello world mat files. Write some pseudo-code and then implement it. I suggest creating pseudo-code for the expected output mat file as well, just to help figure out things if they don't match your expected results.