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

Syntax

c = is_sorted(a)

c = is_sorted(a, b)

Legacy Name: issorted

Description

Determines whether the input elements are in increasing order.

Examples

Inputs

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.

Outputs

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.

Details

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

Examples

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

Related Topics

sort


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit