GNU Octave

GNU Octave is a high-level interpreted language, primarily intended for numerical computations, that is used by hundreds of thousands of users worldwide. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. The Octave language is compatible with MATLAB and most programs are easily portable both ways. For more information about the GNU Octave project visit its homepage or its Wikipedia page.

Run Octave Demo Program

Launch the GNU Octave module via the Computing icon on desktop, and run the demo program by pressing the green button. This will send the demo program to the server where it will be processed. In a moment, results (in this case a 3D graph of a function of two variables) will come back and be displayed in your web browser. If you are new to Octave, feel free to experiment with the program by changing the function, plotting interval, plotting granularity, etc. Always click on the green button to refresh the results.

coding courses and 3D modeling for kids

The demo program is not the simplest Octave program possible – its purpose merely is to illustrate how the Octave module works. When it is no longer needed, turn it off in Settings.

Three Ways to Work with GNU Octave in NCLab

You can either write your own Octave programs and save them in your NCLab account, copy and paste Octave/MATLAB programs that you find on the web, or upload Octave/MATLAB files from your hard disk and edit/run them in NCLab.

1. Write Your Own Octave Programs

This is simple – just turn off the demo program in Settings (or erase the code cell by clicking on the “Clear cell” button beneath it). You need to save your file once, and then NCLab will be saving your work automatically every few seconds. Octave programs do not have to be written in one piece – read how to work with code, HTML and output cells.

2. Copy and Paste Octave/MATLAB Programs from the Web

A huge number of Octave programs on virtually any subject can be found on the web. Once you find a program you need, just copy and paste it into the NCLab’s Octave module, make changes if needed, and run it by pressing the green button. Projects with multiple files are OK but interactive commands and file operations are not fully supported in NCLab yet. Please check the last paragraph of this page for details.

3. Upload Octave/MATLAB Programs from Your Computer

You can use the Upload function in the File manager’s File menu to upload your Octave/MATLAB files to NCLab. This includes multiple file projects. Most of them will run without the need for any modifications. For some limitations see the last paragraph of this page.

Teach Numerical Methods with NCLab

Many instructors use NCLab’s Octave module to enhance their undergraduate and graduate level Numerical Methods courses with live computations in the classroom, and to assign programming homeworks. NCLab’s public database contains Octave programs for most standard numerical methods. Read more….


coding courses and 3D modeling for kids
 
coding courses and 3D modeling for kids
 
coding courses and 3D modeling for kids

Learning Resources

Many Octave/MATLAB tutorials available online. Here are a few of them: