I know in C I do it by storing all the datamembers into a structure and then doing a fout.write((char*)& structname,sizeof(structname));
If matlab has structs it might make it a lot easier to place your data into a structure then read/write entire structures at a time
|