...
The last paragraph of the Local Functions documentation page says that "All functions, including local functions, have their own workspace that are separate from the base workspace. Local functions cannot access variables used by other functions unless you pass them as arguments" and vice-versa. The following video covers this very important concept.
...