sortx
Sort elements in heatmap row
Syntax
Description
sortx(
displays the elements in h
,row
)row
in ascending order (from left
to right). This function sorts the row elements by rearranging the columns.
Specify row
as one element or as an array of elements from
YData
. If the first row that you specify has repeating
values, then sortx
rearranges the remaining columns
according to the second row, and so on.
sortx(___,'MissingPlacement',
specifies whether to put lcn
)NaN
elements first or last in the
sort order. Specify lcn
as 'first'
,
'last'
, or 'auto'
. The default setting
is 'auto'
, which lists NaN
elements last
for ascending order and first for descending order. Use this option after any of
the previous input argument combinations.
sortx(
displays the elements in
the top row in ascending order. If the first row has repeating elements, then
h
)sortx
rearranges the remaining columns according to the
second row, and so on.
Examples
Input Arguments
Output Arguments
Algorithms
The sortx
function sets and queries these
HeatmapChart
object properties:
XDisplayData
— Property that stores the x-axis data.ColorDisplayData
— Property that stores the color display data.
The sortx
function also resets the XLimits
property.
Version History
Introduced in R2017b