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 CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by