Problem loading .dat file in matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear all,
I am currently doing an ECG QRS feature extraction project. I have a problem loading the .dat file in the sample code. An error saying as below :
??? Error using ==> load
Number of columns on line 1 of ASCII file C:\Users\Heng\Documents\MATLAB\aami3a.dat
must be the same as previous lines.
Line error:
Error in ==> qrs_detect_0403 at 3
x1 =load('aami3a.dat'); % load the ECG signal from the file.
Can someone please help me to identify the problem? Your help is much appreciated. Thank you.
Regards,
Heng
3 comentarios
RAKESH
el 22 de Ag. de 2013
Hi there , i am also suffering with same problem. I am working on a project which required MIT BIH ECG database which is in dat format. Can any body explain how to open that file in matlab?
Respuestas (2)
Walter Roberson
el 4 de Mzo. de 2012
load() is not suitable for .dat files. load() is only suitable for MATLAB binary .mat files, and for text files created with MATLAB's save -ASCII option.
The file extension .dat is used for any data file format, and can be binary or text based or some mix, and there is absolutely no standard about what a .dat file should look like.
If you describe the format of your .dat file, someone might be able to suggest a routine to read in the data.
Wayne King
el 4 de Mzo. de 2012
If you look here
You can find links for MATLAB code for reading physionet files.
3 comentarios
Walter Roberson
el 4 de Mzo. de 2012
Looking at those pages, it appears the .dat files are usually in a binary format.
There are references on those pages to programs that can convert physionet files to .mat files.
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!