This is the MATLAB code to read fNIRS signal provided on physionet.
First, download your fNIRS dataset through following link: https://physionet.org/content/motion-artifact/1.0.0
Here is step-by-step toturial to run Import Data.m code:
- ADD PATH in Matlab enviroment where your data are stored (fnirs_1.dat, fnirs_1.hea)
- Use function rdsamp() to read samples based on following code:
[signal, fs, tm] = rdsamp('fnirs_1.dat');