<< Graphics Graphics dispmat_plotnew >>

Display Matrix Toolbox >> Display Matrix Toolbox > Graphics > dispmat_plotgetcell

dispmat_plotgetcell

Returns the handle corresponding to the given cell.

Calling Sequence

cellij = dispmat_plotgetcell ( graphmat , i , j )

Parameters

graphmat :

a graphical matrix, as created by dispmat_plotnew

i :

a 1x1 matrix of floating point integers, the row index of an entry of the graphical matrix

j :

a 1x1 matrix of floating point integers, the column index of an entry of the graphical matrix

cellij :

the uicontrol corresponding to the entry (i,j)

Description

Returns the handle corresponding to the given cell. This allows to configure the uicontrol object corresponding to the entry (i,j) in the matrix.

Examples

A=[
-9          11         -21          63        -252
70         -69         141        -421        1684
-575         575       -1149        3451      -13801
3891       -3891        7782      -23345       93365
1024       -1024        2048       -6144       24572
];
graphmat = dispmat_plotnew ( A );
uientry = dispmat_plotgetcell ( graphmat , 2 , 3 );
uientry.String = string(123456);
// Pick a cell at random, color it at random
for k = 1:5
i = grand(1,1,"uin",1,5);
j = grand(1,1,"uin",1,5);
uientry = dispmat_plotgetcell ( graphmat , i , j );
uientry.BackgroundColor = grand(1,3,"def");
end
// Take some time to see the matrix...
// ... now close
close ( graphmat.figure );

Authors


Report an issue
<< Graphics Graphics dispmat_plotnew >>