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 who command

Overview

Octave who command is a built-in function to list currently defined variables matching the given pattern.

Syntax

>> who
>> who [option] pattern …

To know more about the who command.

>> help who

By default, the command lists the variables in the current local scope. To list the global variables we can use the ‘global’ flag to the command.

To display matching variables with a regular expression, we can use the flagĀ  ‘-regexp’ followed by the pattern.

Example

>> x1=10;
>> x2=12.5;
>> who
Variables visible from the current scope:

ans x1 x2

# To display variables that start with x character.

>> who -regexp ‘x’

Octave who command

We can consider using the whos command to get detailed information about each variable.

The who command displays only the name of the variable. whos command displays detailed information about the variable like name, type, size, storage details, etc in a table format.

>> whos

 

Octave whos command

The clear command clears all the variables in the session. After the use of the clear command, the who or the whos will not display any variables.

To know more about the clear command:

https://www.testingdocs.com/octave-clear-command/

—

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

Hello World in Octave

Octave /

Hello World in Octave

Octave /

Octave plot example of function y=x^2

‹ Octave 2D pie Chart› Octave clear command

Recent Posts

  • Update draw.io on Windows
  • 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