TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Octave

Hello World in Octave

Introduction

In this tutorial, we will learn to code the Hello World script using the Octave software on the Ubuntu Linux machine. A common way to test something new is to create a simple “Hello World” program with the language or tools we are learning. Let’s get started.

Prerequisite

Install Octave Application on the Linux machine.

https://www.testingdocs.com/install-octave-on-ubuntu-linux/

Launch the App

Click on the Show applications >> Search for Octave >> Click on the GNU Octave icon

 

This should launch the Octave GUI.

 

Octave GUI

Hello World

In the Command Window type the following command near the prompt >>

>> disp(‘Hello World’);
Hello World
>>

 

disp

The disp is a built-in function to display values onto the screen. Please note that the output from disp function always ends with a newline. To know more about the function type ‘help disp’ on the Command Window prompt.

—

Octave Tutorials

Octave Tutorial on this website can be found at:
https://www.testingdocs.com/octave-tutorial/

More information on Octave can be found on the official website:
https://www.gnu.org/software/octave/index

Related Posts

Octave Package List

Octave /

Install Octave Packages on Linux

Octave /

Octave User defined Function Example

octave command line linux

Octave /

Octave Command line on Ubuntu

Octave /

Octave plot example of function y=x^2

Octave Install Ubuntu Linux

Octave /

Install Octave on Ubuntu Linux

‹ Octave plot example of function y=x^2› Octave Command line on Ubuntu

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version