Sharing Variables Between Parent and Nested Functions .......
20-28
Using Handles to Store Function Parameters ................
20-29
Visibility of Nested Functions ............................
20-31
Resolve Error: Attempt to Add Variable to a Static Workspace. ..
20-33
Issue ..............................................
20-33
Possible Solutions .....................................
20-33
Private Functions ........................................ 20-36
Function Precedence Order ...............................
20-37
Change in Rules For Function Precedence Order .............
20-38
Update Code for R2019b Changes to Function Precedence Order
....................................................
20-40
Identifiers cannot be used for two purposes inside a function ....
20-40
Identifiers without explicit declarations might not be treated as
variables .........................................
20-40
Variables cannot be implicitly shared between parent and nested
functions .........................................
20-41
Change in precedence of wildcard-based imports .............
20-42
Fully qualified import functions cannot have the same name as nested
functions .........................................
20-42
Fully qualified imports shadow outer scope definitions of the same
name ............................................
20-43
Error handling when import not found .....................
20-43
Nested functions inherit import statements from parent functions
................................................
20-44
Change in precedence of compound name resolution ..........
20-44
Anonymous functions can include resolved and unresolved identifiers
................................................
20-45
Indexing into Function Call Results ........................
20-46
Example ............................................
20-46
Supported Syntaxes ...................................
20-46
Function Arguments
21
Find Number of Function Arguments ........................
21-2
Support Variable Number of Inputs ..........................
21-4
Support Variable Number of Outputs ........................
21-5
Validate Number of Function Arguments .....................
21-6
Checking Number of Arguments in Nested Functions ...........
21-8
Ignore Inputs in Function Definitions .......................
21-10
Check Function Inputs with validateattributes ...............
21-11
xviii
Contents
20-28
Using Handles to Store Function Parameters ................
20-29
Visibility of Nested Functions ............................
20-31
Resolve Error: Attempt to Add Variable to a Static Workspace. ..
20-33
Issue ..............................................
20-33
Possible Solutions .....................................
20-33
Private Functions ........................................ 20-36
Function Precedence Order ...............................
20-37
Change in Rules For Function Precedence Order .............
20-38
Update Code for R2019b Changes to Function Precedence Order
....................................................
20-40
Identifiers cannot be used for two purposes inside a function ....
20-40
Identifiers without explicit declarations might not be treated as
variables .........................................
20-40
Variables cannot be implicitly shared between parent and nested
functions .........................................
20-41
Change in precedence of wildcard-based imports .............
20-42
Fully qualified import functions cannot have the same name as nested
functions .........................................
20-42
Fully qualified imports shadow outer scope definitions of the same
name ............................................
20-43
Error handling when import not found .....................
20-43
Nested functions inherit import statements from parent functions
................................................
20-44
Change in precedence of compound name resolution ..........
20-44
Anonymous functions can include resolved and unresolved identifiers
................................................
20-45
Indexing into Function Call Results ........................
20-46
Example ............................................
20-46
Supported Syntaxes ...................................
20-46
Function Arguments
21
Find Number of Function Arguments ........................
21-2
Support Variable Number of Inputs ..........................
21-4
Support Variable Number of Outputs ........................
21-5
Validate Number of Function Arguments .....................
21-6
Checking Number of Arguments in Nested Functions ...........
21-8
Ignore Inputs in Function Definitions .......................
21-10
Check Function Inputs with validateattributes ...............
21-11
xviii
Contents
