-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using loading_MAHNOB, the ECG signal waveform I obtained seems to be wrong. #13
Comments
Could you please precise what happen when you do not change the lines ? Why cannot you obtain the raw signal without this change ? In your code you only update the structure raw_data for each electrode (overwriting the previous assignment) and then you use phys_data to compute ECG. Since phys_data should be 0 I am surprised you even obtain a signal different from 0. |
Dear Dr, @Gijom @msoley @JoseCalero @Frankkkkk Thank you so much for your reply. If I use the line68-72 of the original code "loading_MAHNOB.m", I can not obtain the true length of one trial. Specifically, there are only two sampling points in the phys_data.data(j,:) (the shape of a trial phys_data.data(j,:) is 1×2) instead of the true length of one trial. In other words, . For example, for the trial 1 of the subject 10, the shape of "data.Record " is 47×29440. However, after using the line68-72 of the original code, the shape of "phys_data.data" becomes 39×2 instead of 39×29440 where 29440 is the true length of the trial. The reason of this phenomenon is that "triggers(3)-triggers(1)" is equal to 2. The line68-72 of the original code "loading_MAHNOB.m":
Thus, I change line 69: phys_data.data = zeros(n_chans+1,(triggers(3)-triggers(1))); Strangely, there is something wrong with the EXG signal waveform using the code after doing the change. Actually, in the original code, I don't know what "triggers" in line68-71 used for. Also,I do not know whether it is reasonable to do the change. Could you please help me check whether the change is right and what's wrong with me ? |
Dear Dr,
Hello, can you help me with the following problem? Thank you very much !
Using "loading_MAHNOB" , I try to get the ECG signal in MAHNOB.
However, the waveform I obtained seems to be wrong, because it is unlike the standard ECG signal waveform (fig2 of the paper publishing MAHNOB database). The signal I obtained and the standard signal are attached.
【the ECG signal waveform I obtained using "loading_MAHNOB"】
【the standard ECG signal waveform】
Note that, when I run "loading_MAHNOB", I change line 69-72 of "loading_MAHNOB", because I can not obtain the raw signal without this change. line 69-72 of "loading_MAHNOB" was changed to:
Can you please help me have a look on this? Thank you very much for all your help!
Best regards
The text was updated successfully, but these errors were encountered: