Returns the handle corresponding to the given cell.
cellij = dispmat_plotgetcell ( graphmat , i , j )
a graphical matrix, as created by dispmat_plotnew
a 1x1 matrix of floating point integers, the row index of an entry of the graphical matrix
a 1x1 matrix of floating point integers, the column index of an entry of the graphical matrix
the uicontrol corresponding to the entry (i,j)
Returns the handle corresponding to the given cell. This allows to configure the uicontrol object corresponding to the entry (i,j) in the matrix.
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 ); | ![]() | ![]() |