patch
블록 마스크 아이콘에 채색된 도형 그리기
설명
예제
블록 마스크 아이콘에 빨간색 삼각형 그리기
이 명령을 사용하여 블록 마스크 아이콘에 빨간색 삼각형을 만듭니다.
patch([0 0.5 1], [0 1 0], [1 0 0])
입력 인수
x
— x
좌표
벡터 (디폴트 값)
도형의 x 좌표로, 벡터로 지정됩니다.
예: patch([0 0.5 1], [0 1 0], [1 0 0])
데이터형: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| categorical
| datetime
| duration
y
— y 좌표
벡터 (디폴트 값)
도형의 y 좌표로, 벡터로 지정됩니다.
예: patch([0 0.5 1], [0 1 0], [1 0 0])
데이터형: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| categorical
| datetime
| duration
rgb
— RGB 3색
벡터 (디폴트 값)
RGB 3색으로, 요소를 3개 가진 행 벡터로 지정되며 각 요소는 도형의 색을 구성하는 빨간색, 녹색, 파란색의 농도를 나타냅니다. 농도는 범위 [0,1]
내에 있어야 합니다.
예: [0.4 0.6 0.7]
데이터형: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| categorical
| datetime
| duration
버전 내역
R2006a에 개발됨
참고 항목
port_label
| disp
| fprintf
| text
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)