Site icon TestingDocs.com

Octave range command

Overview

In this tutorial, we will learn about the Octave range command. The range is an in-built function. The function returns the range of the input data. The range is defined as the difference between the maximum and the minimum of the input data.

Syntax

The syntax of the range function is as follows:

>> range(X)

The argument X can be a vector or matrix.

Examples

>> X = [ 2 19 7 12 17]
X =

2 19 7 12 17

>> range(X)
ans = 17
>>

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

Exit mobile version