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

1 回表示 (過去 30 日間)
ddd ppp
ddd ppp 2018 年 5 月 5 日
コメント済み: ddd ppp 2018 年 5 月 5 日
is the primary benefit not having extra function files for a script?

採用された回答

Walter Roberson
Walter Roberson 2018 年 5 月 5 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by