getFunctionDefault - Get default function customization template or memory section for model functions

  category - MATLAB ([original](https://in.mathworks.com/help/ecoder/ref/coder.mapping.api.coderdictionary.getfunctiondefault.html)) ([raw](?raw))

Main Content

Get default function customization template or memory section for model functions category

Since R2021a

Syntax

Description

[propertyValue](#mw%5Fe8b2318f-d049-494b-996c-8d30b54ce49f) = getFunctionDefault([myCoderDictionaryObj](#mw%5Fcff10858-38f0-4676-b28f-21887d767dfd),[category](#mw%5Ffc695159-9a84-4c87-8bbf-ee46e8256880),[property](#mw%5F92bdb78c-2319-4c8e-ae3b-10fd1b2ef6c0)) returns the value of the specified property for the specified function category.

example

Examples

collapse all

Use the coder.mapping.api.get function to access theCoderDictionary object associated with the data dictionary.

cm = coder.mapping.api.get('codeDefinitions.sldd');

To see the memory section for Execution functions in the dictionary, use the getFunctionDefault function.

value = getFunctionDefault(cm, 'Execution', 'MemorySection')

To configure the memory section for the category, use thesetFunctionDefault function.

setFunctionDefault(cm, 'Execution', 'MemorySection', 'functionFastMem')

To verify that the memory section for the Execution category is now set to functionFastMem, use thegetFunctionDefault function.

value = getFunctionDefault(cm, 'Execution', 'MemorySection')

value =

'functionFastMem'

Input Arguments

collapse all

Coder dictionary object returned by a call to functioncoder.mapping.api.get.

Category of model entry-point functions for which to set the function customization template and memory section.

Example: 'Execution'

FunctionCustomizationTemplate or MemorySection for which to return a value.

Example: 'FunctionCustomizationTemplate'

Output Arguments

collapse all

Name of the function customization template or memory section.

Data Types: char | string

Version History

Introduced in R2021a