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.