Rank: 8 based on 2756 downloads (last 30 days) and 64 files submitted
photo

Brett Shoelson

E-mail
Company/University
MathWorks
Lat/Long
38.87422943115234, -77.1302490234375

Personal Profile:

I'm a biomedical engineer by training, but I love MATLAB and have worked as a Principal Application Engineer for MathWorks since 2005. I also co-write the Pick of the Week blog, with my friend Jiro.

Professional Interests:
(medical) image processing

 

Watch this Author's files

 

Files Posted by Brett View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Apr 2013 Screenshot SegmentTool: An Interactive GUI for Segmenting Images Interactively find the best approach to segmenting (masking) your image Author: Brett Shoelson app, image, gui, segmentation, image processing, mask 417 11
  • 5.0
5.0 | 3 ratings
28 Mar 2013 Screenshot expandAxes Click any axes to expand it in a separate figure. Right-click expanded axes to export contents! Author: Brett Shoelson grow axes popup figur... 25 9
  • 4.85714
4.9 | 7 ratings
28 Mar 2013 Screenshot exploreRGB Simple utility to view all color planes, grayscale, and colorspace conversions of an RGB image. Author: Brett Shoelson explore rgb color pla..., color, circularhough_grd_sl, rgb 373 10
  • 4.4
4.4 | 5 ratings
18 Mar 2013 Screenshot ImadjustGUI Launches an interactive GUI for modifying the parameters of IMADJUST. Author: Brett Shoelson gui, display, annotation, image intensity adjus..., imadjust, enhance 149 2
  • 5.0
5.0 | 1 rating
11 Mar 2013 Screenshot MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson morphology, dilation, gui, image processing, erosion, image filtering 456 39
  • 5.0
5.0 | 10 ratings
Comments and Ratings by Brett View all
Updated File Comments Rating
01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

Farid, I thought that's what I did. Perhaps if my response is unclear, or if I misunderstood your question, you can email me with a better explanation of what you would like to do with EDFREAD.
Cheers,
Brett
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

Farid,
Number of channels (signals?) is specified in line 124:
hdr.ns = str2double(fread(fid,4,'*char')');

In subsequent lines (125,128,132,...) the files reads 1:hdr.ns. If you wanted to, you could modify those calls to read (for example) signals [1,3,5,6,7] by changing instances of

for ii = 1:hdr

to

for ii = [1,3,5:7]

HTH,
Brett

29 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

@Oleksandr (and Ibraheem):
Thanks for the reviews/comments. My goal in writing this was to facilitate using MATLAB to analyze data stored in EDF format.

I encourage you to share your EDFWrite function, if you write one; creating that capability is a bit outside of my job description. ;)

I'm curious, though: what is your rationale for exporting to EDF after you've brought data in to MATLAB for analysis? Is there something you need to do with them that you can't do with MathWorks' tools? (Or did you just want to share with non-MATLAB users?)

Brett (the MATLAB guy)

26 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

Hisham, Would you either try to download the function again and re-try to read the file, or send me the file you downloaded. I'd like to understand what's going on.
Thanks,
Brett
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

25 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

Hisham, line 13 is already a comment, isn't it? Can you tell me what platform you're using, and what version of MATLAB? And can you download a signal from Physionet and try to read it? (For instance:

http://www.physionet.org/physiobank/database/adfecgdb/r01.edf

).

If you can read that signal, it would suggest there's something in your data file that might be problematic.

Thanks,
Brett

Comments and Ratings on Brett's Files View all
Updated File Comment by Comments Rating
01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Farid, I thought that's what I did. Perhaps if my response is unclear, or if I misunderstood your question, you can email me with a better explanation of what you would like to do with EDFREAD.
Cheers,
Brett
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Farid

Thanks Brett for your quick and clear response. Could you please suggest a way to read segments of data (e.g specific signals in shorter segments).
Thanks

Farid

01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Farid,
Number of channels (signals?) is specified in line 124:
hdr.ns = str2double(fread(fid,4,'*char')');

In subsequent lines (125,128,132,...) the files reads 1:hdr.ns. If you wanted to, you could modify those calls to read (for example) signals [1,3,5,6,7] by changing instances of

for ii = 1:hdr

to

for ii = [1,3,5:7]

HTH,
Brett

01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Farid

Thanks for useful code. I wonder to know how I can use the edfread to read specific channels? I have huge file of several channels and am interested on some of them. The comments on MATLAB code is not clear to me.
Thanks

29 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

@Oleksandr (and Ibraheem):
Thanks for the reviews/comments. My goal in writing this was to facilitate using MATLAB to analyze data stored in EDF format.

I encourage you to share your EDFWrite function, if you write one; creating that capability is a bit outside of my job description. ;)

I'm curious, though: what is your rationale for exporting to EDF after you've brought data in to MATLAB for analysis? Is there something you need to do with them that you can't do with MathWorks' tools? (Or did you just want to share with non-MATLAB users?)

Brett (the MATLAB guy)

Top Tags Applied by Brett
utilities, gui, directories, files, image processing
Files Tagged by Brett View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
03 Apr 2013 Screenshot SegmentTool: An Interactive GUI for Segmenting Images Interactively find the best approach to segmenting (masking) your image Author: Brett Shoelson app, image, gui, segmentation, image processing, mask 417 11
  • 5.0
5.0 | 3 ratings
28 Mar 2013 Screenshot expandAxes Click any axes to expand it in a separate figure. Right-click expanded axes to export contents! Author: Brett Shoelson grow axes popup figur... 25 9
  • 4.85714
4.9 | 7 ratings
28 Mar 2013 Screenshot exploreRGB Simple utility to view all color planes, grayscale, and colorspace conversions of an RGB image. Author: Brett Shoelson explore rgb color pla..., color, circularhough_grd_sl, rgb 373 10
  • 4.4
4.4 | 5 ratings
18 Mar 2013 Screenshot ImadjustGUI Launches an interactive GUI for modifying the parameters of IMADJUST. Author: Brett Shoelson gui, display, annotation, image intensity adjus..., imadjust, enhance 149 2
  • 5.0
5.0 | 1 rating
11 Mar 2013 Screenshot MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson morphology, dilation, gui, image processing, erosion, image filtering 456 39
  • 5.0
5.0 | 10 ratings

Contact us