In the Octave prompt, simply type file1
.
Of course, you need to make sure Octave can recognize its path.
Question
How do I execute .m
files in Octave?
Solution
In the Octave prompt, simply type file1
.
Of course, you need to make sure Octave can recognize its path.
OTHER TIPS
In octave prompt, type run("file1.m")
or entering the filename without .m
extension.
To run your Octave file in GNU Octave.
You can see the logs in command window
Be sure to check that your file name is same as the function name.