onoffids2logical(on​OffIds, varargin)

버전 1.2.0.0 (2.55 KB) 작성자: David J. Mack
Convert start and end ids of events to logical indicator array.
다운로드 수: 27
업데이트 날짜: 2017/4/27

라이선스 보기

This is a utility function to compute a logical indicator array from the start and end ids of events in an array, e.g. 4/5 & 7/10 -> 00011011110. This is can be used quickly extract the events by logical indexing. It is vectorized and thus is very fast even for large arrays.
This function is part of a set of functions to convert between logical and number indexing in arrays:
GETONOFFIDS: www.mathworks.com/matlabcentral/fileexchange/58983
ONOFF2LOGICAL: www.mathworks.com/matlabcentral/fileexchange/58984
BRIDGEIDGAPS: www.mathworks.com/matlabcentral/fileexchange/58985

인용 양식

David J. Mack (2024). onoffids2logical(onOffIds, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/58984-onoffids2logical-onoffids-varargin), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R10
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

- [ADD] Error check for onOffIds outside of prespecified n.
- [FIX] Disappearing single sample events.

1.1.0.0

2016-12-16 (DJM): [FIX] Removed enlarging 'IsOn' in case the last sample is contained in 'OnOffIds'.

1.0.0.0

Added links.