도움말 센터도움말 센터
이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
현재 블록의 경로 이름 가져오기
bl = gcb
bl = gcb(sys)
예제
bl = gcb는 현재 시스템에서 현재 블록의 전체 블록 경로 이름을 반환합니다. 다음과 같은 블록을 현재 블록이라고 합니다.
가장 최근에 클릭한 블록
현재 대응되는 MATLAB® 함수를 실행하는 S-Function 블록
콜백 루틴이 실행되고 있는 블록
MaskInitialization 파라미터 평가의 일환으로 마스크 평가가 진행 중인 블록
MaskInitialization
모델을 연 후 마지막으로 불러온 블록
bl = gcb(sys)는 지정된 시스템에서 현재 블록의 전체 블록 경로 이름을 반환합니다. 먼저 시스템을 불러오십시오.
sys
모두 축소
모델을 엽니다.
vdp
모델에서 블록을 선택합니다. 예를 들어, Gain 블록을 선택해 보겠습니다. 그런 다음, 명령 프롬프트에 gcb를 입력합니다.
gcb
ans = vdp/Mu
Gain 블록을 선택합니다.
get_param에 gcb 값을 사용하여 Gain 파라미터의 값을 가져옵니다.
get_param
Gain
x = get_param(gcb,'Gain')
x = 1
Model a Fault-Tolerant Fuel Control System 예제 모델 sldemo_fuelsys를 불러옵니다.
sldemo_fuelsys
openExample('simulink_automotive/ModelingAFaultTolerantFuelControlSystemExample') load_system('sldemo_fuelsys');
fuel_rate_control 서브시스템에서 현재 블록을 가져옵니다.
fuel_rate_control
bl = gcb('sldemo_fuelsys/fuel_rate_control')
bl = sldemo_fuelsys/fuel_rate_control/validate_sample_time
블록을 포함하는 시스템으로, 문자형 벡터로 지정됩니다.
예: 'vdp' 'sldemo_fuelsys/fuel_rate_control'
'vdp'
'sldemo_fuelsys/fuel_rate_control'
R2006a 이전에 개발됨
gcbh | gcbp | gcs | get_param
gcbh
gcbp
gcs
다음 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office