The function sindegree can be called at the command line or by any other function, but the
subfunction convert can only be called by other functions in the same file.
5.4.3 Private Functions
Private functions are functions that reside in subdirectories with the special name private.
They are visible only to functions in the parent directory. Because private functions are invis-
ible outside the parent directory, they can use the same names as functions in other directories.
For example, assume the directory folder_name is in the MATLAB search path. A subdirec-
tory of folder_name called private can contain functions that only the functions residing in
folder_name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.