How do I execute .m files in Octave?
.m
In the Octave prompt, simply type file1.
file1
Of course, you need to make sure Octave can recognize its path.