背景碎碎念:readedf.m、WFDB、EDFbrowser(无法import)读注释SC、ST都不行。
readedf.m:edfread读出来的注释都不是整数,目测不能读
WFDB:用rdsamp和rdann读的时候都报错了
错误使用 rdsamp (line 203)
Could not find record: sleep-edfx/SC4011EH-PSG. Search path is set to: '. C:\software\Matlab R2019a\toolbox\WFDB\mcode\..\database\ http://physionet.org/physiobank/database/'
索引超过 Java 数组维度
出错 rdann (line 188)
str=char(data(1));
EDFbrowser:可以import PSG数据,但是无法import annotation
成功方法:经physionet官网数据库介绍,还有一种软件Polyman
下载之后可能会被当成病毒拦截,但目测安全。。吧
一、读取数据及注释:
打开软件-File-Open-File(s)...
二、提取注释
查看注释:View-Scorings/Annotation Lists
导出:View-Scorings/Annotation Lists-Export-Current list as Text(CSV.)file...
然后就可以用matlab读取并选取合适片段辣!