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

    • ChatGPT Subscription Plans
    • Stellar Converter for Database
    • Stellar Log Analyzer for MySQL
    • Stellar Repair for MySQL
    • ChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI Features
    • Shaping the Future of Development: Exploring Key Trends in Software Engineering
    • Improving Java Performance with Multithreading
    • Open-source Vector Databases

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com