Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

setInputParametersLayoutGrid

입력 매개변수에 대한 레이아웃 그리드 지정

구문

setInputParametersLayoutGrid(check_obj, [row col])

설명

setInputParametersLayoutGrid(check_obj, [row col])은 Model Advisor의 입력 매개변수에 대한 레이아웃 그리드를 지정합니다. 입력 매개변수가 여러 개인 경우 setInputParametersLayoutGrid 방법을 사용합니다.

입력 인수

check_objModelAdvisor.Check 클래스의 인스턴스화
row레이아웃 그리드의 행 수
col레이아웃 그리드의 열 수

예제

다음 예는 검사 정의 함수의 코드 조각입니다. 전체 검사 정의 기능이 없으면 표시된 대로 예제가 실행되지 않습니다.

rec = ModelAdvisor.Check('com.mathworks.sample.Check1');
rec.setInputParametersLayoutGrid([3 2]);
% define input parameters
inputParam1 = ModelAdvisor.InputParameter;
inputParam1.Name = 'Skip font checks.';
inputParam1.Type = 'Bool';
inputParam1.Value = false;
inputParam1.Description = 'sample tooltip';
inputParam1.setRowSpan([1 1]);
inputParam1.setColSpan([1 1]);
inputParam2 = ModelAdvisor.InputParameter;
inputParam2.Name = 'Standard font size';
inputParam2.Value='12';
inputParam2.Type='String';
inputParam2.Description='sample tooltip';
inputParam2.setRowSpan([2 2]);
inputParam2.setColSpan([1 1]);
inputParam3 = ModelAdvisor.InputParameter;
inputParam3.Name='Valid font';
inputParam3.Type='Combobox';
inputParam3.Description='sample tooltip';
inputParam3.Entries={'Arial', 'Arial Black'};
inputParam3.setRowSpan([2 2]);
inputParam3.setColSpan([2 2]);
rec.setInputParameters({inputParam1,inputParam2,inputParam3});