In the Octave prompt, simply type file1
.
Of course, you need to make sure Octave can recognize its path.
题
How do I execute .m
files in Octave?
解决方案
In the Octave prompt, simply type file1
.
Of course, you need to make sure Octave can recognize its path.
其他提示
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.