wrote some routines in MATLAB to make the data ready for input, and read the SD card output file in a specific manner