ishghandle
그래픽스 객체 핸들인 경우 True
구문
ishghandle(h)
설명
ishghandle(h)
는 h
의 요소가 기존 그래픽스 객체에 대한 핸들인 경우 1이 포함된 배열을 반환하고, 그렇지 않으면 0이 포함된 배열을 반환합니다. Simulink® 객체 핸들이 false를 반환한다는 점에서 ishandle
과 다릅니다.
예제
유효한 그래픽스 객체 핸들인지 테스트하기
플롯을 생성합니다. 출력 인수 p
가 유효한 그래픽스 객체 핸들인지 테스트합니다.
x = 1:10; y = 1:10; p = plot(x,y);
ishghandle(p)
ans = logical
1
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)