I have a 24x2
matrix in matlab. I need to represent this data in a table but also make sure that each of the rows are colored on various hues of a colors (like a heat map) based on the values of the second column.
Is there a matlab function that can render such table figures? Or is there any other language or tool that can support such a facility?
Plot Gradient of FunctionFind the gradient of a function f(x,y) , and plot it as a quiver (velocity) plot. Find the gradient vector of f(x,y) with respect to vector [x,y] . The gradient is vector g with these components. Now plot the vector field defined by these components.
[ FX , FY ] = gradient( F ) returns the x and y components of the two-dimensional numerical gradient of matrix F . The additional output FY corresponds to ∂F/∂y, which are the differences in the y (vertical) direction. The spacing between points in each direction is assumed to be 1 .
Create a surface plot of the peaks function and specify a colormap. Return the three-column matrix of values that define the colors used in the plot. Each row is an RGB triplet color value that specifies one color of the colormap.
Specify an m-by-n matrix of colormap indices, where [m,n] = size(X) . Specify one color per vertex. Create matrices x , y , and c . Then plot the filled region with fill color interpolated from vertex colors c .
You can use uitable to display a matrix as a table. It has a BackgroundColor property, but that can only be set for the entire table.
You can however get around this by inserting custom HTML tables like described here.
Here's the uitable properties list:
http://www.mathworks.com/help/techdoc/ref/uitableproperties.html
Using handles, you can create one figure and make individual tables, each one column, each with their own BackgroundColor and Position properties.
Here's an example of multiple uitables on one figure:
Display multiple uitable objects in the same figure?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With