使用MATLAB读取physionet数据库信号详细步骤
官网:https://physionet.org/
下载官网提供的的Matlab读取工具:
官方地址:https://physionet.org/physiotools/matlab/wfdb-app-matlab/
下载并安装流程如下:
To install or update a previous installation of this Toolbox:
1. Open MATLAB or Octave.
2. Go into the directory where you wish to install the Toolbox:(以下代码直接复制进MATLAB,然后directoryname改为你将要安装的目录)
cd directoryname
3.
4. Type (or copy and paste) the following commands into the MATLAB or Octave window:(直接复制进MATLAB就好)
[old_path]=which('rdsamp'); if(~isempty(old_path)) rmpath(old_path(1:end-8)); end
wfdb_url='https://physionet.org/physiotools/matlab/wfdb-app-matlab/wfdb-app-toolbox-0-10-0.zip';
[filestr,status] = urlwrite(wfdb_url,'wfdb-app-toolbox-0-10-0.zip');
unzip('wfdb-app-toolbox-0-10-0.zip');
cd mcode
addpath(pwd)
savepath
5.
Test the Toolbox:
For a demonstration of the toolbox, run(直接复制,稍微等待结果,进行测试)
wfdbdemo
To read and plot an ECG signal from one of PhysioBank's data collections, try these commands:(另一个读取数据的方法)
[tm,sig]=rdsamp('mitdb/100',1);
plot(tm,sig);
If these tests do not run successfully, please see the Toolbox FAQ for troubleshooting hints.
按照以上步骤安装测试过程如下: