资源简介
读取和存储edf文件,edf+也能读,和我分享的另一个读取文件一起,基本能读取所有的edf无难度 如果有别的问题 欢迎留言 有别的需求 也欢迎留言
代码片段和文件信息
function [data header] = readEDF(filename)
% 纔thor: Shapkin Andrey
% 15-OCT-2012
% filename - File name
% data - Contains a signals in structure of cells
% header - Contains header
fid = fopen(filename‘r‘‘ieee-le‘);
%%% HEADER LOAD
% PART1: (GENERAL)
hdr = char(fread(fid256‘uchar‘)‘);
header.ver=str2num(hdr(1:8)); % 8 ascii : version of this data format (0)
header.patientID = char(hdr(9:88)); % 80 ascii : local patient identification
header.recordID = char(hdr(89:168)); % 80 ascii : local recording identification
header.startdate=char(hdr(169:176)); % 8 ascii : startdate of recording (dd.mm.yy)
header.starttime = char(hdr(177:184)); % 8 ascii : starttime of recording (hh.mm.ss)
header.length = str2num (hdr(185:192)); % 8 ascii
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6082 2012-10-15 04:44 ReadEDF.m
文件 13481 2012-10-15 04:37 SaveEDF.m
文件 1314 2014-02-12 14:27 license.txt
评论
共有 条评论