# 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