edf to Matlab conversion?

조회 수: 3 (최근 30일)
Oddur Bjarnason
Oddur Bjarnason 2017년 7월 18일
댓글: Oddur Bjarnason 2017년 7월 21일
I need to convert edf to Matlab. I have tried to use edfRead. The function call is
function [hdr, record] = edfread('aesa1.edf')
But I get the following error message:
Error: File: edfread.m Line: 1 Column: 34 Unexpected MATLAB expression.
Can you help me?
  댓글 수: 1
Oddur Bjarnason
Oddur Bjarnason 2017년 7월 21일
Harsh,
Where do you place your datafile before running edfRead?
Oddur

댓글을 달려면 로그인하십시오.

답변 (1개)

Harsh
Harsh 2017년 7월 21일
https://www.mathworks.com/matlabcentral/fileexchange/31900-edfread From the link above, I was able to download and run the function on a sample file from http://www.physionet.org/physiobank/database/adfecgdb/r01.edf such as [hdr,datastream] = edfread('r01.edf').
It's possible that the file is corrupted or has been modified in some way. Try to run it with a new install of the function. As this is a file exchange submission, it is best to reach out to the author should this issue persist.
  댓글 수: 1
Oddur Bjarnason
Oddur Bjarnason 2017년 7월 21일
Harsh,
I reinstalled edfRead and ran it with your data.
function [hdr, record] = edfread('r01.edf')
I got the following error code
Error: File: edfread.m Line: 1 Column: 34 Unexpected MATLAB expression.
Before I ran the function I got the following pop-up message:
"Invalid syntax at 'r01.edf'.Possibly a ),}, or ] is missing.
Can you help me?
Oddur

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by