ECG, difference between original data and imported data of original data into Matlab

1 view (last 30 days)
Hi I need some help in importing data from Physionet into Matlab.
For instance,
the data I copied into excel are the following:
Time(s) |Volt(s)
0.00000 8.46
0.00004 8.592
0.00008 8.352
0.00012 8.152
0.00016 8.34
hence in Excel, the data is presented in 2 columns, 6 rows. When I type in importdata Excelfile.xlsx into Matlab (Excelfile refers to the file containing the above information), the following data then appears,
Trial>> importdata 'Book2.xlsx'
ans =
0 8.4600
0.0000 8.5920
0.0001 8.3520
0.0001 8.1520
0.0002 8.3400
0.0002 8.5280
0.0002 8.3120
how come there is a difference between that of column 1 in the original data and that of the imported data in Matlab?
Please help me anyone. I've been figuring this out for days, nearing to a week.
My email is as follows: syarifozil91@gmail.com

Accepted Answer

Thorsten
Thorsten on 7 Oct 2015
Edited: Thorsten on 7 Oct 2015
The default format do display numbers in Matlab is short, i.e., "Scaled fixed point format with 5 digits.". If you want to see more digits (15 for double), use
format long
So your numbers are read correctly, they are just displayed by default with too few digits.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!