MATLAB ヘルプ センター
Specify layout grid for input parameters
setInputParametersLayoutGrid(check_obj, [row col])
setInputParametersLayoutGrid(check_obj, [row col]) sets the layout grid dimensions for displaying input parameters in the check object check_obj.
check_obj
row
col
collapse all
This example shows how to specify the layout grid for input parameters in a custom Model Advisor check.
Create a Model Advisor check object.
rec = ModelAdvisor.Check('com.mathworks.mySampleCheck'); rec.Title = 'Example: Input Parameters Layout Grid'; rec.TitleTips = 'Demonstrates setInputParametersLayoutGrid usage';
Set the layout grid to two rows and two columns.
setInputParametersLayoutGrid(rec,[2 2]);
Define input parameters.
inputParam1 = ModelAdvisor.InputParameter; inputParam1.Name = 'Enable Option'; inputParam1.Type = 'Bool'; inputParam1.Value = true; inputParam1.Description = 'Toggle to enable option'; inputParam2 = ModelAdvisor.InputParameter; inputParam2.Name = 'Threshold'; inputParam2.Type = 'String'; inputParam2.Value = '10'; inputParam2.Description = 'Set the threshold value';
Assign the input parameters to the check object.
setInputParameters(rec,{inputParam1, inputParam2});
ModelAdvisor.Check
Model Advisor check object, specified as a ModelAdvisor.Check object.
Integer
Specifies the number of rows in the layout grid for displaying input parameters in the Model Advisor.
Example: 2
2
Specifies the number of columns in the layout grid for displaying input parameters in the Model Advisor.
Introduced in R2008a
ModelAdvisor.Check | ModelAdvisor.InputParameter
ModelAdvisor.InputParameter
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ