Create Examples Using the Live Editor ......................
19-84
Create an Interactive Form Using the Live Editor .............
19-85
Create a Real-time Dashboard Using the Live Editor ...........
19-88
Acknowledgments .......................................
19-89
Function Basics
20
Create Functions in Files ..................................
20-2
Syntax for Function Definition ............................
20-2
Contents of Functions and Files ...........................
20-3
End Statements .......................................
20-4
Add Help for Your Program ................................
20-5
Configure the Run Button for Functions ......................
20-7
Base and Function Workspaces .............................
20-9
Share Data Between Workspaces ...........................
20-10
Introduction .........................................
20-10
Best Practice: Passing Arguments .........................
20-10
Nested Functions .....................................
20-10
Persistent Variables ...................................
20-11
Global Variables ......................................
20-12
Evaluating in Another Workspace .........................
20-12
Check Variable Scope in Editor ............................
20-14
Use Automatic Function and Variable Highlighting ............
20-14
Example of Using Automatic Function and Variable Highlighting .
20-14
Types of Functions .......................................
20-17
Local and Nested Functions in a File ......................
20-17
Private Functions in a Subfolder ..........................
20-18
Anonymous Functions Without a File ......................
20-18
Anonymous Functions ....................................
20-20
What Are Anonymous Functions? .........................
20-20
Variables in the Expression ..............................
20-21
Multiple Anonymous Functions ...........................
20-21
Functions with No Inputs ...............................
20-22
Functions with Multiple Inputs or Outputs ..................
20-22
Arrays of Anonymous Functions ..........................
20-23
Local Functions .........................................
20-25
Nested Functions ........................................
20-27
What Are Nested Functions? ............................
20-27
Requirements for Nested Functions .......................
20-27
xvii
Précédent

- 17/1450

Suivant