MATLAB: How can i fix this error

errorloadmat filesphysiobank atmphysionet

Hi, I get this error:
Error using load
Unknown text on line number 1 of ASCII file
drive01.dat
"ÿ".
after loading drive01.dat that i downloaded it from this page: https://physionet.org/physiobank/database/drivedb/
Would anyone help me to fix this error?

Best Answer

You need to use the PhysioBank ATM (link).
To get the database you want, scroll down to ‘Stress Recognition in Automobile Drivers (drivedb)’, then using the Toolbox drop-down menu, download it as a ‘.mat’ file. First, be certain that you have chosen the Record, Signals, Annotations (if applicable), Length, Time format, and Data format you want.
To illustrate:
Scroll down and find the link to the database you chose. Right-click on it to download it.
You can then load it into your MATLAB workspace as you would any other ‘.mat’ file.
I always recommend using the load function with an output argument, so you can see and choose what variables you want to import into your workspace. It also allows you to assign your own variable names to the data, so any in the ‘.mat’ file do not overwrite any similarly-named variables already in your workspace.
If you are going to use Physionet frequently, please take a few minutes to explore it. That will be time well spent.