Whats the use of an inline function (function at end of script)?

1 vue (au cours des 30 derniers jours)
ddd ppp
ddd ppp le 5 Mai 2018
Commenté : ddd ppp le 5 Mai 2018
is the primary benefit not having extra function files for a script?

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Mai 2018
Reducing the number of files is one benefit. Another is that the function becomes private to the script.
When routines are not too large, it can be easier to read them together when they are in the same file.

Plus de réponses (0)

Catégories

En savoir plus sur Function Creation dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by