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

Octave

Octave Command line on Ubuntu

Overview

On this page, we will learn how to use Octave from the command line without the GUI window. Sometimes, it’s handy to use the command line to run commands instead of the Octave GUI.

How to launch

To launch Octave, open the Terminal window and Type Octave.

 

octave command line linux

Sample Commands

To display Hello World, we can use the disp() function.

For example, to display a string www.TestingDocs.com

octave> disp(‘www.TestingDocs.com);

Clear command output:

We can type the clc command to clear the previous command’s output on the command window.

Run plot command

We can even run the plot commands from the command line. For example, to display the sombrero hat we can run the following command.

octave>surf(sombrero);

 

Sombrero hat Octave command

 

Exit Octave

We can use the exit command to exit the Octave command line. The regular terminal prompt would appear on the screen.

—

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

Hello World in Octave

Octave /

Hello World in Octave

Octave /

Octave plot example of function y=x^2

Octave Install Ubuntu Linux

Octave /

Install Octave on Ubuntu Linux

‹ Hello World in Octave› Octave User defined Function Example

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