Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

issorted (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the membership class.

Syntax

c = issorted(a)

c = issorted(a, b)

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.

Examples

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

Related Topics

sort


Resources


 

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