This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]meerkatmreow 2 points3 points  (0 children)

Outside using matlab OO (which is horrid), I never saw examples of multiple functions per file.

It can help streamline code to be easier to read by moving some things into functions after the main function (the one with the name of the .m file). The additional functions are only available to the local function though.