Range intersection

버전 1.10.0.0 (1.63 KB) 작성자: Xavier Xavier
Mathematical intersection of range composed of a union of intervals
다운로드 수: 1.3K
업데이트 2012/5/30

라이선스 보기

Purpose: Range/interval intersection

A and B two ranges of closed intervals written
as vectors [lowerbound1 upperbound1 lowerbound2 upperbound2]
or as matrix
[lowerbound1, lowerbound2, lowerboundn;
upperbound1, upperbound2, upperboundn]
A and B have to be sorted in ascending order

out is the mathematical intersection A n B

EXAMPLE USAGE:
>> out=range_intersection([1 3 5 9],[2 9])
out = [2 3 5 9]
>> out=range_intersection([40 44 55 58], [42 49 50 52])
out = [42 44]

인용 양식

Xavier Xavier (2026). Range intersection (https://kr.mathworks.com/matlabcentral/fileexchange/31753-range-intersection), MATLAB Central File Exchange. 검색 날짜: .

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

도움 받은 파일: Interval merging

버전 게시됨 릴리스 정보
1.10.0.0

Major modification and bug fixing

1.9.0.0

Correction of an error in the input description

1.0.0.0