result =
6
9
14
21
30
41
54
69
86
To run the function using a different run command from the list, click Run and select the
desired command. When you select a run command from the list, it becomes the default for the
Run button.
To edit or delete an existing run command, click Run , right-click the command, and then select
Edit or Delete.
Note Running live functions in the Live Editor using the
Run button is only supported in MATLAB
Online. When you run a live function using the
Run button, the output displays in the Command
Window. To run a live function in an installed version of MATLAB, call the function from the Command
Window or from a script or live script.
See Also
More About
•
“Calling Functions”
•
“Create Functions in Files” on page 20-2
•
“Create Live Functions” on page 19-50
20 Function Basics
20-8
Précédent

- 716/1450

Suivant