extractor

버전 1.0.0.0 (1.63 KB) 작성자: Jean-Luc Dellis
extracts data from a matrix following a value condition
다운로드 수: 932
업데이트 날짜: 2007/7/10

라이선스 보기

newdata=extractor(data,cn,valinf,valsup)

extracts from DATA, all the lines whose the CNth column
has values included between valinf and valsup

DATA = matrix N X M
CN = Column Number (target)
VALINF = Low limit
VALSUP = High limit
NEWDATA = Extracted Matrix

Example:
a =

1 2 3
4 5 6
1 7 8
1 4 9
4 7 2
9 6 5

extract data with third column included between 0 and 5:
>> extractor(a,3,0,5)

ans =

1 2 3
4 7 2
9 6 5

extract data with first column exactly equal to 4:
>> extractor(a,1,4,4)

ans =

4 5 6
4 7 2

인용 양식

Jean-Luc Dellis (2024). extractor (https://www.mathworks.com/matlabcentral/fileexchange/15519-extractor), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

1/ improvement of the error checking
2/ logical indexing instead of the use of FIND