A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Hello World in Octave page! Here, you'll find the source code for this program as well as a description of how the program works.
disp('Hello, World!');
Hello World in Octave was written by:
This article was written by:
If you see anything you'd like to change or update, please consider contributing.
Syntax in Octave is based on its Octave scripting language.
One line is all it takes! The "details-hidden" nature of the languages removes
the need to declare variables or classes before the fun begins. disp
is the
command in Octave that formats data and displays it in the command window. In
this case, the data is the string "Hello, World!" (denoted by the
quotations).
If you want to try this out yourself:
Run the script like this:
octave -qf hello-world.m
Alternatively, you can use Octave Online. Just copy/paste the script into the input command prompt and press Enter.