sortdownreal (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
sortdownreal (MathScript RT Module Function)
Owning Class: dynchar
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
[q, i] = sortdownreal(l)
Legacy Name: esort
Description
Sorts a list of elements in a vector in descending order based on the real parts of each element. If two or more elements have identical real parts, this function sorts those elements in descending order based on the imaginary parts of each element.
Inputs
| Name | Description |
|---|---|
| l | Specifies a vector of elements you want to sort. l is a real or complex vector. |
Outputs
| Name | Description |
|---|---|
| q | Returns the list of elements in l sorted in descending order. q is a real or complex vector. |
| i | Returns the list of indexes this function used to sort l. i is an integer vector. |
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
l = [-1, -2, 1, 0, 2]
[q, i] = sortdownreal(l)