资源简介
支持.edf文件的读取与解析,内附使用测试,运行test.m文件即可
代码片段和文件信息
function [hdr record] = edfread(fname varargin)
% Read European Data Format file into MATLAB
%
% [hdr record] = edfread(fname)
% Reads data from ALL RECORDS of file fname (‘*.edf‘). Header
% information is returned in structure hdr and the signals
% (waveforms) are returned in structure record with waveforms
% associated with the records returned as fields titled ‘data‘ of
% structure record.
%
% [...] = edfread(fname ‘assignToVariables‘ assignToVariables)
% Triggers writing of individual output variables as defined by
% field ‘labels‘ into the caller workspace.
%
% [...] = edfread(...‘desiredSignals‘desiredSignals)
% Allows user to specify the names (or position numbers) of the
% subset of signals to be read. |desiredSignals| may be either a
% string a cell array of comma-separated strings or a vector of
% numbers. (Default behavior is to read all signals.)
% E.g.:
% data = edfread(mydata.edf‘desiredSignals‘‘Thoracic‘);
% data = edfread(mydata.edf‘desiredSignals‘{‘Thoracic1‘‘Abdominal‘});
% or
% data = edfread(mydata.edf‘desiredSignals‘[246:13]);
%
% FORMAT SPEC: Source: http://www.edfplus.info/specs/edf.html SEE ALSO:
% http://www.dpmi.tu-graz.ac.at/~schloegl/matlab/eeg/edf_spec.htm
%
% The first 256 bytes of the header record specify the version number of
% this format local patient and recording identification time information
% about the recording the number of data records and finally the number of
% signals (ns) in each data record. Then for each signal another 256 bytes
% follow in the header record each specifying the type of signal (e.g.
% EEG body temperature etc.) amplitude calibration and the number of
% samples in each data record (from which the sampling frequency can be
% derived since the duration of a data record is also known). In this way
% the format allows for different gains and sampling frequencies for each
% signal. The header record contains 256 + (ns * 256) bytes.
%
% Following the header record each of the subsequent data records contains
% ‘duration‘ seconds of ‘ns‘ signals with each signal being represented by
% the specified (in the header) number of samples. In order to reduce data
% size and adapt to commonly used software for acquisition processing and
% graphical display of polygraphic signals each sample value is
% represented as a 2-byte integer in 2‘s complement format. Figure 1 shows
% the detailed format of each data record.
%
% DATA SOURCE: Signals of various types (including the sample signal used
% below) are available from PHYSIONET: http://www.physionet.org/
%
%
% % EXAMPLE 1:
% % Read all waveforms/data associated with file ‘ecgca998.edf‘:
%
% [header recorddata] = edfRead(‘ecgca998.edf‘);
%
% % EXAMPLE 2:
% % Read records 3 and 5 associated with file ‘ecgca998.edf‘:
%
% header = ed
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8455680 2019-02-26 10:39 edf\Affaaf.edf
文件 10388 2019-02-26 10:48 edf\edfread.m
文件 3038 2017-06-06 12:40 edf\readedf.m
文件 40 2019-02-26 10:52 edf\test.m
目录 0 2019-02-26 10:48 edf\
相关资源
- 智能优化算法蚁群算法、狼群算法、
- PLS—偏最小二乘工具箱工具箱
- 室内IMU+PDR资料
- pure control.zip
- 数值分析第二版 Numerical Analysis 2nd T
- 数字图像处理大作业.zip
- 模型预测控制学习实用教材
- 火力发电厂含有SVG无功补偿装置的并
- MPPT控制的可运行程序合辑
- psychtoolbox教程
- tucker分解工具包
- 电力仿真软件 psat 说明书
- 核函数的所有代码
- 指纹识别系统包含了指纹数据库 源码
- 胡广书现代信号处理课后代码.rar
- SaDE差分进化算法的程序
- DBN源码,深度学习领域的适合初学者
- 有关逻辑门限值控制的ABS算法的毕业
- FPGA数字信号处理实现原理及方法-清华
- 数学建模算法与应用第2版习题解答的
- 三相异步电动机运行仿真及GUI设计
- 小波特征提取与支持向量机识别
- 轨迹优化软件gpops5.2
- 混沌系统同步控制的代码
- 数字听诊器设计
- 通过中心频率来确定VMD分解个数,程
- 基于混沌的语音加密系统设计.rar
- 2017年数学建模原题ABCD题目,含附件
- 数字图像处理期末作业
- 利用GPML V4.2工具箱实现高斯过程回归
评论
共有 条评论