- Scaling the data: If you have the scaling factor provided in the .info file, you can multiply each data point by the scaling factor to apply the scaling eg.
- Resampling the data to 128 Hz: MATLAB provides the resample function to resample the data. Assuming your original data is stored in the variable “raw_data” and the original sampling rate is “original_fs”, you can use the following code to resample the data to 128 Hz:
- Separating the data into two separate data records: Assuming the concatenated data is stored in the variable “concatenated_data”, you can use the following code to separate them:
- Truncating the data length to 65536 samples: Assuming your data record is stored in the variable “data_record”, you can use the following code to truncate it:
- Resample uniform or nonuniform data to new fixed rate - MATLAB resample (mathworks.com)
- Split strings at delimiters - MATLAB split (mathworks.com)
- Access Data in Tables - MATLAB & Simulink (mathworks.com)