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 Assignment Expression

Overview

In this tutorial, we will learn about Octave Assignment Expression with examples. The `=’ sign is the Octave assignment operator.

Octave Assignment Expression

The assignment expression is used to store a new value into a variable. The common expression is shown below:

variable_name = value_to_store;

We can also store another variable value into some other variable using the assignment operator.

variable_name = another_variable ;

Examples

For example, to store the number 25 into a variable number, we can use the following expression.

number = 25;

For example, the following expression would store the string in the variable message

message = ” Good Morning”;

For example, a and b are two variables. To store the value of b into a variable:

a = b;

We can also store a value in multiple variables using a single assignment statement. For example, to store 20 in variables a and b, we can use the following statement:

a = b = 20; 

—

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 Input and Output› Octave Arithmetic Operator Precedence

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