|
hi....
now I am doing my final project, where need to read ecg data from notepad and interpret it...
in my project,the step required are :
1. read data.
2. filtering.
3. derivative.
4. dtection of QRS complex.
for infomation, i got all the program for filtering, derivative and detection. but the problem is i dont know how input to call the data from notepad...
please help me...
thank you...
|
|
|
hi pojie_yana,
the data in text format (can be open via notepad)
should be standardize and it will be easy for you
to extract it and insert into database before you
are starting for analysis.
this is some sample you can adapt on your code.
GOOD LUCK.
// reading a text file
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
int main () {
char buffer[256];
ifstream examplefile ("/forum/example.txt");
if (! examplefile.is_open())
{ cout << "Error opening file"; exit (1); }
while (! examplefile.eof() )
{
examplefile.getline (buffer,100);
cout << buffer << endl;
}
return 0;
}
|
|
|
|
|
|
|
|
|
© Copyright codetoad.com 2001-2005 |
|
|