Function creates a raster plot from signals stored in an EDF file. The x axis of the raster plot represents time and the y axis presents sequential time segments. The X axis duration and number of segments to display on the y axis options are predefined to values most likely to be used in sleep and circadian research. Grid lines corresponding to 30 second sleep epochs are automatically displayed. The function can be used to create figures and can be used to create power point summaries.
obj = BlockEdfSignalRasterView(fn|edfStruct, signalLabelCell)
obj = BlockEdfSignalRasterView(fn|edfStruct, signalLabelCell, opt)
obj = BlockEdfSignalRasterView(fn|edfStruct, signalLabelCell, opt, anote)
Setting Raster Properties:
The three most common adjustments required for generating signal raster plots are described below:
(1) Set x axis duration.The x axis duration is set by selecting an
index to the w array. The w array duration values are:
1, 2, 5, 10, 15, 20, 30 seconds
1, 2, 2.5, 3, 5, 10, 15, 20 30 40 45 minutes
1, 2, 3, 4, 6, 8, 12, 14 hours
Setting obj.xAxisScale = 14; prior to creating figures or a
powerpoint will set the raster x axis to 15 minute
(2) Set number of segments to display. The number of segments is
set by indexing numSignalsPerPage. The numSignalsPerPage values are:[1 2 3 4 5 6 10 12 20 24 30 60]
Setting obj.numSignalsPerPageIndex = 8; prior to creating figures or a
PowerPoint will set the number of segments displayed to 12.
(3) Change signal scale. Set signalDisplayGain to adjust signal
scaling. Values between .2 and 8 generally work best.
Additional Information and test data can be found at:
output example: https://github.com/DennisDean/BlockEdfSignalRasterView/releases
Program uses saveppt2.m to generate MS PowerPoint files.
Dennis A. Dean, II, Ph.D. (2021). BlockEdfSignalRasterView (https://www.mathworks.com/matlabcentral/fileexchange/46366-blockedfsignalrasterview), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!