unique
설명
은 uniqueinterval
= unique(interval
)fixed.Interval
객체 interval
과 등가인 값 집합을 표현하는 구간의 벡터를 반환합니다. 이때 구간은 중첩되지 않으면서 증가하는 순서로 정렬됩니다.
예제
Interval
객체로 구성된 배열에서 겹치지 않는 구간의 세트 만들기
unique
함수를 사용하여 Interval
객체로 구성된 배열에서 겹치지 않는 구간의 세트를 가져옵니다.
intervals = fixed.Interval({-5,5},{-10,10},{4,20},{50,100})
[-5,5] [-10,10] [4,20] [50,100] 1x4 fixed.Interval with properties: LeftEnd RightEnd IsLeftClosed IsRightClosed
객체에 표시된 처음 세 구간은 서로 겹칩니다. 네 번째 구간은 세트와 겹치지 않습니다.
uniqueInterval = unique(intervals)
uniqueInterval = [-10,20] [50,100] 1x2 fixed.Interval with properties: LeftEnd RightEnd IsLeftClosed IsRightClosed
두 개의 Interval
객체로 구성된 배열인 출력 uniqueInterval
은 3개의 겹치는 구간을 단일 Interval
객체로 병합합니다.
입력 인수
interval
— fixed.Interval
객체
fixed.Interval
객체 | fixed.Interval
객체로 구성된 배열
입력 fixed.Interval
객체로, fixed.Interval
객체 또는 fixed.Interval
객체로 구성된 배열로 지정됩니다.
출력 인수
uniqueinterval
— Interval
객체의 겹치지 않는 세트
fixed.Interval
객체 | fixed.Interval
객체로 구성된 배열
Interval
객체의 겹치지 않는 세트로, fixed.Interval
객체 또는 fixed.Interval
객체로 구성된 배열로 반환됩니다.
interval
이 스칼라 Interval
객체인 경우 출력값은 입력값과 동일합니다.
버전 내역
R2019b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)