BlockEdfSignalRasterView
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.
Function prototypes:
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
example:
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]
example:
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:
https://github.com/DennisDean/BlockEdfSignalRasterView
https://sleepdata.org/
output example: https://github.com/DennisDean/BlockEdfSignalRasterView/releases
Acknowledgements:
Program uses saveppt2.m to generate MS PowerPoint files.
http://www.mathworks.com/matlabcentral/fileexchange/19322-saveppt2
인용 양식
Dennis A. Dean, II, Ph.D. (2024). BlockEdfSignalRasterView (https://www.mathworks.com/matlabcentral/fileexchange/46366-blockedfsignalrasterview), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
태그
도움
도움 받은 파일: saveppt2, blockEdfLoad
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!