How to execute .m files in Octave

Hamed Kamrava picture Hamed Kamrava · Apr 26, 2014 · Viewed 52.2k times · Source

How do I execute .m files in Octave?

Answer

herohuyongtao picture herohuyongtao · Apr 26, 2014

In the Octave prompt, simply type file1.

Of course, you need to make sure Octave can recognize its path.