Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

is_sorted (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: membership

Requires: MathScript RT Module


c = is_sorted(a)

c = is_sorted(a, b)

Legacy Name: issorted


Determines whether the input elements are in increasing order.



Name Description
a A vector or matrix.
b Determines how to check the sorting of a. You must specify b when a is a matrix. b is a string that accepts the following values.

'columns' Determines whether the columns of a are in increasing order.
'rows' Determines whether the rows of a are in increasing order.


Name Description
c Returns 1 if the elements of vector a or the rows or columns of matrix a are in increasing order. Otherwise, this function returns 0. c is a Boolean.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


A = [1, 2, 3, 5, 4]
C = is_sorted(A)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful