getFunctionDefault
説明
は指定された関数カテゴリに対して指定されたプロパティの値を返します。propertyValue
= getFunctionDefault(myCoderDictionaryObj
,category
,property
)
例
データ カテゴリに対する既定のメモリ セクションの構成
関数 coder.mapping.api.get
を使用して、データ ディクショナリに関連付けられた CoderDictionary
オブジェクトにアクセスします。
cm = coder.mapping.api.get('codeDefinitions.sldd');
ディクショナリの Execution
の関数に対するメモリ セクションを表示するには、関数 getFunctionDefault
を使用します。
value = getFunctionDefault(cm, 'Execution', 'MemorySection')
value = 'None'
カテゴリに対するメモリ セクションを構成するには、関数 setFunctionDefault
を使用します。
setFunctionDefault(cm, 'Execution', 'MemorySection', 'functionFastMem')
Execution
カテゴリに対するメモリ セクションが現在 functionFastMem
に設定されていることを確認するには、関数 getFunctionDefault
を使用します。
value = getFunctionDefault(cm, 'Execution', 'MemorySection')
value = 'functionFastMem'
入力引数
myCoderDictionaryObj
— コーダー ディクショナリ オブジェクト
CoderDictionary
オブジェクト
関数 coder.mapping.api.get
の呼び出しで返されるコーダー ディクショナリ オブジェクト。
category
— モデル関数のカテゴリ
InitializeTerminate
| Execution
| SharedUtility
関数カスタマイズ テンプレートとメモリ セクションを設定するモデルのエントリポイント関数のカテゴリ。
例: 'Execution'
property
— 関数カスタマイズ テンプレートまたはメモリ セクション
FunctionCustomizationTemplate
| MemorySection
値を返す FunctionCustomizationTemplate
または MemorySection
。
例: 'FunctionCustomizationTemplate'
出力引数
propertyValue
— 関数カスタマイズ テンプレートまたはメモリ セクションの名前
文字ベクトル | string スカラー
関数カスタマイズ テンプレートまたはメモリ セクションの名前。
データ型: char
| string
バージョン履歴
R2021a で導入
参考
coder.mapping.api.CoderDictionary
| setDataDefault
(Embedded Coder) | getDataDefault
| setFunctionDefault
(Embedded Coder)
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは 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)