>> moon ??? Undefined function or variable 'moon'.If you define a function (e.g. moon) in a file (e.g. star.m) that has a different name than the file name, you can only call that function from within the eponymous function (e.g. from within the star function). The moon function, then, defined within the star.m file, cannot be independently executed.