getfullname
블록이나 선을 식별하는 경로 가져오기
설명
예제
블록 경로 가져오기
예제를 엽니다. 그런 다음 vdp
모델을 엽니다.
open_system('vdp')
모델에서 대화형 방식으로 Mu
라는 블록을 선택합니다.
현재 선택된 블록을 식별하는 경로를 가져옵니다.
blkpath = getfullname(gcb)
blkpath = 'vdp/Out2'
신호 선 경로 가져오기
예제를 엽니다. 그런 다음 vdp
모델을 엽니다.
open_system('vdp')
모델에서 Mu
라는 블록의 출력 포트에 연결되는 신호 선을 선택합니다.
현재 선택된 선의 핸들을 가져옵니다.
line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', ... 'Type', 'line', 'Selected', 'on');
현재 선택된 선을 식별하는 경로를 가져옵니다.
linepath = getfullname(line)
linepath = 0x1 empty cell array
경로는 선의 소스 포트를 설명합니다.
입력 인수
handle
— 블록 또는 선
핸들 | 핸들로 구성된 셀형 배열
블록 또는 선으로, 핸들이나 핸들로 구성된 셀형 배열로 지정됩니다.
예: getfullname(gcb)
예: getfullname({handle1,handle2})
데이터형: double
| cell
버전 내역
R2007a에 개발됨
참고 항목
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)